Private Sub Command2_Click()
Dim Sql As String
Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Sql = "select * from 表1 where 删除=true"
Rs.Open Sql, Conn, adOpenKeyset, adLockOptimistic
Do While Not Rs.EOF
Conn.Execute "delete * from " & Rs.Fields("表名") & ""
Rs.MoveNext
Loop
Set Rs = Nothing
Set Conn = Nothing
End Sub