SeWarnings

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 ?
 
V

Van T. Dinh

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.
 

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