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!

Supress Info box when running Queries 1

Status
Not open for further replies.

geaker

Programmer
Mar 15, 2003
28
US
I have a form that the user selects the report/query/form they want. If the button kicks off a query is there a way to supress the 'The table will be delteted......', You are about to paste.......', or other message the user must respond to. I have tried sendkeys without much luck.

Thanks,
Gerald
 
Use this:
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryYourQuery"
DoCmd.SetWarnings True

Should do it for you. Bob Scriver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top