Question : How not to display Alerts of an update query when a form is opened

I have a form which runs an update query (inside Sub Form_Load) when it is loaded. But because it is an update query , access displays an alert
saying you are about to run an update query.... Do you want to continue
Then it says "You are about to update 2 row(s)" ........ Click yes or on

How can can I disable these alerts, for this form. I couldnt find something like in excel
application.displayalerts=false

thanks

Answer : How not to display Alerts of an update query when a form is opened

Just put this line in the Load event code (before running the update query):

DoCmd.SetWarnings False
Random Solutions  
 
programming4us programming4us