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!

Run query without confirmation from user

Status
Not open for further replies.

ramnewbietoaccess

Programmer
Nov 4, 2002
52
US
I have an on close event for a form that runs a make table query and then an update query. Does anyone know how to alter the code so that it does not require the user to click yes 6 times?

Thank you in advance for advice or suggestions.
 
You can use the SetWarnings method.

ie.
Code:
private sub RunQueries()

  docmd.SetWarnings false
  <run your queries>
  docmd.SetWarnings true

end sub

hope this helps
 
Phantazmo thanks a lot!!!!!!!!!!!!! My end users HATE clicking 6 times lol dont blame them
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top