DoCmd.SetWarnings

Turn system messages on or off.

Syntax
      DoCmd.SetWarnings(WarningsOn)

Key
   WarningsOn    Use True (-1) to turn on the display of system messages
                 and False (0) to turn them off.

If system messages are turned off in Visual Basic, they must be turned back on, or they will remain off, even if the user presses CTRL+BREAK or Visual Basic encounters a breakpoint.

You can create a macro that turns the display of system messages on and then assign that macro to a key combination. You could then use the macro to restore system messages if they have been turned off in Visual Basic.

Examples

DoCmd.SetWarnings False

“The aim of science is not to open the door to infinite wisdom but to set a limit to infinite error” ~ Bertolt Brecht (Life of Galileo)

Related

Echo - Turn screen updating on or off.


 
Copyright © 1999-2024 SS64.com
Some rights reserved