I have the following code:
CurrentDb.Execute "DROP TABLE [" & DatabaseName & "].[" & TableName & "];"
Which will drop a table from an MS Access database. Typically this is being done using a database on a shared network.
How can I ensure the DROP
method completes before allowing the control to move on to the next line in my code?
This is being done in VBA MS Access 2003; but I would be interested if the version impacts the answer.