Deleting An Access Table

  • Thread starter Thread starter Charles
  • Start date Start date
C

Charles

How can I delete an access table using VBA From Excel, I
have tried
set db = dao.dbEngine.opendatabase(dataPath)
db.TableDefs.Delete TableName
This will only delete Linked Tables
TIA
Charles
 
Charles said:
How can I delete an access table using VBA From Excel, I
have tried
set db = dao.dbEngine.opendatabase(dataPath)
db.TableDefs.Delete TableName
This will only delete Linked Tables

Try:

<<connection>>.Execute "DROP TABLE " & TableName & ";"

Jamie.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top