How do I prevent the violation error from an append query,from sho

G

Guest

I want to turn off the violation error shown after I run an append query. It
displays due to key violation; which is what I wanted, but I do not want the
error pop up from displaying.
 
G

Guest

If you are using code

Docmd.SetWarnings False
Docmd.OpenQuery "QueryName"
Docmd.SetWarnings True


*** Note: it is important to set the warnings back on after the query is
executed ***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top