To solve this particular problem, you can use this function:
Function TableDeleted(TableNameAs String) As Boolean
On Error ResumeNext
DoCmd.DeleteObject acTable, TableName
End Function
Paste it into a module and save it
In your macro:
Action = RunCode
FunctionName: TableDeleted("YourTableName"
You don't need the Delete action anymore. The function does the job.
Note: The table must be closed and not used by any other object when you run the macro. But you're using macros, so I suppose it's a single user application, and it's Saturday afternoon-relaxing time for me which I wish you too...
And second step: drop macros and get VBA coding training...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.