SeWarnings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I tried the action "SeWarnings" to avoide getting unnecessary pup up messages
,but i still have the message "OpenForm action was cancelled" .
As i wrote a code in the "On open" to show me a message if the result is
nothing
Could any body tell me what should i do ?
 
The message you got is an error message, not a warning message.

If you don't want to see this error message (e.g. *you* cancel the opening
of the Form by setting Cancel = True), you need to trap for this error
(error number 2501) and ignore it in the calling code, i.e. the Sub with the
OpenForm statement.
 
Back
Top