Eliminate prompts from RunMacro in VBA

chadb

Registered User.
Local time
Yesterday, 21:26
Joined
Dec 13, 2005
Messages
18
I want to run 7 delete queries when a form loads. I'm using the docmd.runmacro "macro1.name" in VBA on the form load, which works fine, except that it prompts the user with confirmations for each one. Is there a way to eliminate the prompts and just have it auto confirm each one?
 
Code:
DoCmd.SetWarnings False
docmd.runmacro "macro1.name"
DoCmd.SetWarnings True
 
Thanks for the code!
 

Users who are viewing this thread

Back
Top Bottom