Any way to turn off messaging as the module runs?

M

Mark

Some queries that are called from VBA create tables,
delete records, etc.

Is there anyway to turn off these messages (while
answering "yes" to the info box question)?

Thank you
 
C

Cheryl Fischer

You can use:

DoCmd.SetWarnings False
<your code to run queries>
DoCmd.SetWarnings True

or, if your version of Access supports it:

CurrentDB.Execute <full sql string for your Action Query>, dbFailOnError


hth,
 
A

Allen Browne

SetWarnings.

Better yet, use the Execute method instead of RunSql for your action
queries.
 

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