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

Hi! Anyone know how to keep the me

Status
Not open for further replies.

Dawnit

Technical User
Apr 2, 2001
76
0
0
US
Hi! Anyone know how to keep the message box from coming up when you click a command button on a form to run an update query? The message is, "You are about to run... "

Thanks!
 
You have to disable de query update confirmation. In access 97 try:

Application.SetOption "Confirm Action Queries", False

Jorge
 
DoCmd.SetWarnings False
stDocName = "Macro3"
DoCmd.RunMacro stDocName
DoCmd.SetWarnings True
 
Sorry. In Click Event of the button, , add the code..
DoCmd.SetWarnings False
stDocName = "Macro3"
DoCmd.RunMacro stDocName
DoCmd.SetWarnings True
 
Is is true that the DoCmd.SetWarnings False... will turn off ALL warnings, message boxes?

Thanks for the info!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top