P
porterlp
I have created a form and am trying to force entry in each field. Each
field is not to be null.
I tried entering is not null in the validation rule - but that only
works if the individual enters information then tries to remove it.
I entered the following in the before event
Private Sub Pass_Fail_BeforeUpdate(Cancel As Integer)
If IsNull(Me!Pass_Fail) Then
MsgBox "Entry required"
Cancel = True
End If
End Sub
it still allows the form to be closed without data.
Please let me know what vb script would be the correct one.
Thanks!
field is not to be null.
I tried entering is not null in the validation rule - but that only
works if the individual enters information then tries to remove it.
I entered the following in the before event
Private Sub Pass_Fail_BeforeUpdate(Cancel As Integer)
If IsNull(Me!Pass_Fail) Then
MsgBox "Entry required"
Cancel = True
End If
End Sub
it still allows the form to be closed without data.
Please let me know what vb script would be the correct one.
Thanks!