Documentation for--> DoCmd.RunCommand acCmdDeleteTable ?

N

NU_Dave

I've automated a table import to create "MyTable". It works fine, and it
also causes the creation of an "MyTable_ImportErrors" table with any import
problems.

I want to delete "MyTable_ImportErrors" (if it exists) before I execute the
import.

I believe the answer will be in "DoCmd.RunCommand acCmdDeleteTable" but I
can't find sufficient documentation about how to use it.

Suggestions?
 
A

Albert D. Kallal

bumped send key..you don't need that "\"

eg:

CurrentDb.Execute "drop table NameOfYourTable"
 
N

NU_Dave

Never mind!

I was able to do what I needed with;
DoCmd.RunSQL "drop table [MyTable_ImportErrors]"
 

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

Top