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!

How to suppress Update query msg when run in VBA

Status
Not open for further replies.

VicM

Programmer
Sep 24, 2001
444
US
I want to run an Update query multiple times in VBA accessing fields in a table to insert the 'change from' and 'change to' parameters into the SQL statement. Then use a loop to step thru the 'from/to' table thereby updating multiple records in the main table.
When I run the Subroutine I get the Update message asking if I want to continue.

Is there a way to suppress the message and let the update continue thru the loop? I don't want to click yes for the multiple times I want the query to run.

Thanks for any suggestions,

Vic
 
Hi,

Running VBA for what Application?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Oops. Sorry Skip.
Running code in Access 2010.
But the light finally dawned. I only had to put in a DoCmd.SetWarnings False statement, before starting the loop.

Thanks,
Vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top