可以用ADOX,代码片断:
strCn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & MDBFileName
Set ADOXCat = New ADOX.Catalog
ADOXCat.ActiveConnection = strCn
For i = 0 To ADOXCat.Tables.Count - 1
If ADOXCat.Tables(i).Name = TableName Then
Ret = MsgBox("表名已经存在,是否要替换?", vbOKCancel + vbQuestion, "提示")
If Ret = vbOK Then
ADOXCat.Tables.Delete TableName
Exit For
Else
Set ADOXCat = Nothing
Exit Function
End If
End If
Next