G
Guest
I am trying to insure that the user does not leave this box blank. I am
trying the code listed below. But it is not validating the blank combo box.
Private Sub Operator_BeforeUpdate(Cancel As Integer)
If IsNull([Operator]) Then
MsgBox "Must Enter Operator Name", vbOKOnly, "Name Validation"
Me.Undo ' Clear the textbox
Cancel = True ' Hold the cursor in this textbox
End If
End Sub
trying the code listed below. But it is not validating the blank combo box.
Private Sub Operator_BeforeUpdate(Cancel As Integer)
If IsNull([Operator]) Then
MsgBox "Must Enter Operator Name", vbOKOnly, "Name Validation"
Me.Undo ' Clear the textbox
Cancel = True ' Hold the cursor in this textbox
End If
End Sub