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

Need to avoid the access messages

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi

I run my sql to append the records into my temporary table and while sql runs I receive Access messages "You are about to append 1 row..." and so on till all the records are appended.

I don't really want user see that messages and having have to click "OK" all the time. Can I avoid that?

 
docmd.setwarnings = false off

query statement here

docmd.setwarnings = true back on
 
Just ran it, gave me an error...."Argument is not optional", pointing to setwarnings argument

Why is that?
 
Figured it out myself


No need in '=' sign

Simply DoCmd.SetWarnings True would do the thing

Thanks a lot for the trick!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top