By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,224 Members | 1,130 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,224 IT Pros & Developers. It's quick & easy.

Delete a table only if it exists

P: 34

Sometimes, when my table is imported, there are blank cells and an ImportError table gets created in Access.
That table needs to be deleted. But the problem is that if I put the code in:

Expand|Select|Wrap|Line Numbers
  1.   DoCmd.DeleteObject acTable, "Agri_Futures_9196$_ImportErrors"  
and the table doesn't exist, an error message is popping up.

What do I need in my IF statement to cater for this?

Dec 18 '07 #1
Share this Question
Share on Google+
1 Reply

P: 365
Could you put on error resume next?
Dec 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.