Disable system dialogs

N

Nigel

In Excel there is an option DisplayEvents = True /False to
turn off dialogues that Excel generates from within VBA.

Is there an equivalent function in Access?

I am updating some tables and get Access messages about
record changes etc., I need to disable these when required
from the programme.

TIA
 
D

Douglas J. Steele

DoCmd.SetWarnings False to stop them, DoCmd.SetWarnings True to turn them
back on.

Alternatively, you can use the Execute method (applies to the DAO Database
and QueryDef objects), which not only doesn't display the warnings, but can
also generate a trappable error if the query doesn't work.
 
D

danna

Nigel said:
In Excel there is an option DisplayEvents = True /False to
turn off dialogues that Excel generates from within VBA.

Is there an equivalent function in Access?

I am updating some tables and get Access messages about
record changes etc., I need to disable these when required
from the programme.

TIA
 

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