Set db = OpenDatabase("D:\Documents and Settings\GGLDD\My Documents\db1.mdb") For Each td In db.TableDefs If (td.Attributes And dbSystemObject) = 0 Then '不可删除系统表 db.Execute "Drop TABLE " & td.Name & ";" End If Next db.TableDefs.Refresh Set td = Nothing Set db = Nothing