I have a table where the field "Name" is set as a required field.
I have a form that populates that table. When somebody forgets to fill in the Name and they attempt to proceed forward, they receive this message:
"The field 'Name' cannot contain a Null value because the required property for this field is set to True. Enter a value in this field."
Can I change the text of this message? I would like to change it to be a little more user friendly.
I know I can use the code below to write my own message. However, I have found people are still able to move ahead without filling in name by clicking on the little forward arrow at the bottom of the form or by using the mouse wheel. I'm not sure why they do this...but they sometimes do. By making the field required in the table itself, people cannot proceed without filling in Name no matter what. So, my ideal would be to change the default message itself. Thanks for your time and ideas.
I have tried this, but people can still bypass it:
Expand|Select|Wrap|Line Numbers
- Private Sub Save_Record_Button_Click()
- On Error GoTo Err_Save_Record_Button_Click
- If IsNull(Me![Name]) Then
- MsgBox "You need to input a Name in order to proceed", vbCritical, _
- "Missing Required Data"
- Exit Sub