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

Run Query Automatically

Status
Not open for further replies.

Hfnet

IS-IT--Management
Dec 31, 2003
369
GB
I have called an update query from a form using DoCmd.OpenQuery "QUpdateStock", acNormal, acReadOnly

But it asks for user intervention each time to click Yes to run

Can this be done automatically so that there is no user intervention required?
 
Try these three statements in the following sequence:
Code:
DoCmd.SetWarnings False
DoCmd.OpenQuery "QUpdateStock", acNormal, acReadOnly
DoCmd.SetWarnings True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top