Breaking News

Tuesday, June 26, 2012

Ex7: VBA - Delete a table using ADOX


Function DeleteTableAdox()
'Purpose: Delete a table using ADOX.
Dim cat As New ADOX.Catalog

cat.ActiveConnection = CurrentProject.Connection
cat.Tables.Delete "MyTable"
Set cat = Nothing
End Function

No comments:

Post a Comment

Designed By Published.. Blogger Templates