Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate Confirmation Of Table Delete Message 1

Status
Not open for further replies.
Feb 6, 2003
48
US
Hi-

I have a Access macro that runs 4 "Make Table" queries in succession. At the beginning of each macro, I get the "The Existing Table Will Be Deleted, Do You Want To Continue" warning. Is there a way through code that I can automate the response to "Yes" or bypass the message altogether.
 
Take a look at SetWarnings

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thank you for the help.

This code did the trick

DoCmd.SetWarnings False
DoCmd.RunMacro "macroname"
DoCmd.SetWarnings True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top