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

Run an update query without user confirmation 1

Status
Not open for further replies.

SimonDavis

Technical User
Mar 16, 2001
613
GB
Hi all,

I want to run an update query when a user loads a form.

It's to check fields to see how long ago they were updated, and flag 'out of date' with some criteria.

This (depending on how I finally code it) may involve several queries running one after the other.

How can I run them without it asking the user to confirm that the records will be updated. I know it is a dangerous thing to let the application run wild, but I'm aware of the implications. The user probably isn't and will just have to make unneccessary clicks.

Can it be done? Thanks.
 
All you need to due is turn the warning on or off. Here is code to due so.

'turn warnings off
DoCmd.SetWarnings False

your code go in here

'turn warning on
DoCmd.SetWarnings True

rjoshi2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top