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!

Help with queries please.....

Status
Not open for further replies.

vince99

IS-IT--Management
Mar 1, 2001
63
US
Is there a way to automaticly answer yes when you run a query without actually having to hit the yes box on the pop-up box?

Thanks in advanced

 
I'm going to asssume you're running an update, append, or delete query(since these are the only ones that ask for confirmation). If you're running the query from code, you can turn warnings off and then back on.

...
DoCmd.SetWarnings = False
DoCmd.OpenQuery("queryname")
DoCmd.SetWarnings = True
...
 
You can also turn the warning messages off permanently by going to the Tools menu / Options / Edit/Find tab and unchecking Confirm "Record Changes", "Document Deletions", and "Action Queries". Rob Marriott
rob@career-connections.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top