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!

Can dialog prompts be shut off? 2

Status
Not open for further replies.

ZPlay

Technical User
Jan 10, 2002
24
US
I am using the doCmd.OpenQuery to insert and delete records. Is there a way that i can get rid of all the dialog prompts that keep poping up when ever the commands are executed?
 
You could try:


DoCmd.SetWarnings = False
'do your stuff here
DoCmd.SetWarnings = True


I hope this helps....
 
they can be completely switch off via the tools/options menu. just untick the confirm record changes checkbox in the Edit/Find dialog.
 
You can use the SetWarnings, but I recommend the follwing instead, becuase SetWarnings will eliminate any response from the database, even an error you may want to see. Where as the SetOption only affects the action queries.

==========
Application.SetOption "Confirm Action Queries", False
DoCmd.OpenQuery "YourQuery"
Application.SetOption "Confirm Action Queries", True
==========

This is the programmatic equivalent to x-s' response. Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?
 
I think I like Jimmy's suggestion better but it is good to know about the "setwarnings." Thanks for the response. Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top