Macro to Run Multiple Delete Queries

Juliet

New member
Local time
Tomorrow, 09:47
Joined
Jan 7, 2009
Messages
7
Hi
I have an extension on this issue. I have many tables - unrelated - I have set up a delete query for all tables, and now want a simple macro to run all the delete queries. (preferably without Displayalerts). I just want a simple Access macro which can easily be updated should I delete or add tables going forward.
Thanks
 
Hi
I have many tables - unrelated - I have set up a delete query for all tables, and now want a simple macro to run all the delete queries. (preferably without Displayalerts). I just want a simple Access macro which can easily be updated should I delete or add tables going forward.
Thanks
 
Use the OpenQuery action.

For the first action line use SetWarnings No
Then the OpenQuery actions for each query
Then SetWarnings Yes

SetWarnings no turns off the normal Access warning boxes and bell ringing.

If you want the warning boxes/messages then just put the OpenQuery action lines in the macro.
 

Users who are viewing this thread

Back
Top Bottom