Hello
I am trying to check that a textbox value is empty prior to a change. If it is empty I do not want the messege to trigger.
I currently have the following in the 'On Change' Event.
Private Sub txtSON_Change()
'Alert when changing
If Len(Me.txtSON.Value) = 0 Then GoTo EmptyExit
MsgBox "You are about to change the 'Shop Order Number'" _
& Chr$(13) _
& "Be certain number matches appropriate part number.", vbOKOnly, "Change Alert"
EmptyExit:
Exit Sub
End Sub
The messege is triggering even when there is no value in the textbox.