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

How 2 run Action Query without being prompted!

Status
Not open for further replies.

McWhorter

Technical User
Jul 18, 2002
21
0
0
US
I have a database that needs to run a few action queries. On my PC, I have "Unchecked" box in the Tools/Options/Edit menu for Action queries (Access97). That way it doesnt ask for comfirmation that running an action query is OK.

The problem is that all the users PC's have the "Confirm to run Action query" box checked. It would be a PITA to have all users uncheck that box.

Is there some simple code I can use to diable the prompt box.
 
Insert the following in code before running the query:

Docmd.SetWarnings false

After running the query, restore the warnings:

Docmd.SetWarnings True


Cheers, Bill
 
Excellent, I knew there had to be a simple way.

It worked perfectly on the first try.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top