Ho do I use macro to force close Access 2007?
Posted on 2011-03-22
I have a macro that runs from one acces database to export a table to a different database. The purpose is to update the table with current daily data. The user of the database to be updated often forgets to close the database to be updated or is runing a query or macro in it. This causes my database with the auto macro to error out because the database/table to be updated is being used by a different user.
QUESTION: Is there a way end the macro and force close the database when an error dialogue box is open? My desired end result would be to stop the macro from trying to update the external database and close the current database out. The reason is that a separate database macro runs at a later time.