delete table

  • Thread starter Thread starter Guest
  • Start date Start date
Anakin Moonwalker said:
Is there a DoCmd command for deleting a table?

You could do:

Dim db as DAO.Database
Set db = CurrentDb
db.Execute "Drop table [<table name here>];"

If you really want to use DoCmd, try:

DoCmd.SetWarnings False
DoCmd.RunSQL "Drop table [<table name here>];"
DoCmd.SetWarnings True
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

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