Suppress warning msg

B

BobbyS

I have an update sql statement being run in Access.

When the update runs, I don't want the message prompting the user to update
or not update. I want it to update without user interaction.

How can I do that?

Thank you.
 
D

Douglas J. Steele

Either issue a DoCmd.SetWarnings False before you run the query (and
DoCmd.SetWarnings True after), or use the Execute method of either the
Database or QueryDef object. (Of course, given what newsgroup you've posted
to, the latter may not be possible: those are DAO objects, and ADPs don't
support DAO)
 

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