G
Grasavong
Hello,
I created a form where certain fields have to be entered with data. If the
field is not entered a message will appear and says "This Field must be
completed." I changed the table property to that field to 'Yes' for Required
Field and in VB did a code to make the field required:
Private Sub Requestor_Name_BeforeUpdate(Cancel As Integer)
If IsNull(Me![Requestor Name]) Then
Cancel = True
MsgBox "This Field must be completed"
End If
End Sub
This works for the first form, but doesn't work for any of the forms
following. I'm a novice when it comes to VB. What do I need to change in my
code for it to reflect in the following forms?
Thanks.
I created a form where certain fields have to be entered with data. If the
field is not entered a message will appear and says "This Field must be
completed." I changed the table property to that field to 'Yes' for Required
Field and in VB did a code to make the field required:
Private Sub Requestor_Name_BeforeUpdate(Cancel As Integer)
If IsNull(Me![Requestor Name]) Then
Cancel = True
MsgBox "This Field must be completed"
End If
End Sub
This works for the first form, but doesn't work for any of the forms
following. I'm a novice when it comes to VB. What do I need to change in my
code for it to reflect in the following forms?
Thanks.