Substitude a error message with a MsgBox

E

erick-flores

Hello all

I am trying to make this 'error' message go away and display my own
MsgBox. I have set some of the fields in one of my tables to Required.
And when I am actually interacting in the form and i dont fill that
required field it popsup this 'error' message saying "The field 'xxx'
cannot contain a Null value because the Required property for..." I
want this message to be substitude by my on MsgBox. How do I do that?

Thanks in advance
 
V

Van T. Dinh

Generally, you should use code in the Form_BeforeUpdate Event to perform all
data validation before actually trying to save the Record.

Check Access VB Help on the BeforeUpdate Event of the Form object. There is
a sample code in Help also.
 

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