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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I bypass pop-up window. 1

Status
Not open for further replies.
Apr 3, 2005
32
US
I have a event procedure that execute when I click the button to execute the following events:
DoCmd.OpenQuery "Step01", acViewDesign
DoCmd.OpenQuery "Step02", acViewNormal
DoCmd.OpenQuery "Step03", acViewNormal
DoCmd.OpenQuery "Step04", acViewNormal

But query step03 is a make table query, so when it is executed, it pop up a window that said, "An existing table will be deleted. Do you want to continue."
And I want to program where I can select yes and not have the pop-up window appears.
 
DoCmd.SetWarnings False
...
DoCmd.SetWarnings True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
This setwarning = false helps bypass the pop-up window; however, I want to program to select "YES" without prompting the users with the pop-up.
 
Sorry, I don't understand what you want.
 
setting the warnings flag to false means that the code will run (force the Make Table Query) and bypass the popup box.

In effect, it will have received a "yes" answer without ever showing to the user.

It should do exactly what you want, unless I misunderstand what you want.
 
PHV, you rock! thanks i used your "DoCmd.SetWarnings False"

since he didn't give you a star, i will.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top