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

Turn off 'You Are About To Update X Rows...'

Status
Not open for further replies.

MatthewP

Programmer
Jan 16, 2001
176
0
0
GB
Is it possible to turn off the Access alerts 'You Are About To Update X Rows...' when an update or make table query is run? The guys here keep hitting return instead of clicking yes, and the return sometimes causes a default no to happen - causing all sorts of problems!

Cheers,
Matt.
 
Docmd.setwarnings False
'Run the Query
Docmd.setwarnings True

Bill
 
Matthew,
What you need to do is to turn the warning messages off.
If you are using a macro, you will need to insert a row and select SetWarnings and then the "Warnings On" option to No.
It is a good practice to turn them on again when you have completed your macro.

If you are doing this in VB, you need to use the command
docmd.setwarnings false

To turn the warnings back on at the end of your code, use docmd.setwarnings true.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top