How to suppress an error message?

G

Guest

I would like to suppress an error message from a subform with only one field.
First of all I would like to find out how can I get the error number
associated with
the error?
2ndly, how to suppress it?

I have only one field in this subform and when I open up the main form and
if this field is empty, I get error message, the object field is empty. I
would like to supress
this error message and also it shouldn't impact anything 'cause this field
could be empty in my case.

Any help would be highly apprecaited.

Thank you,
-Me
 
G

Guest

Use the form's OnError event:
If DataErr = 2211 Then 'or whatever your error number is.
Response=acDataErrorContinue
End If

Barry
 

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