N
NotGood@All
All I want for this week is to understand why this code does not work. I
have a text field named "EmpFirstName", when I leave this field, if for any
reason the field is blank I would like to see a msgbox. I get an error when
I use the "Cancel" code, but when I don't I can just tab to the next field.
Private Sub EmpFirstName_AfterUpdate()
If Me.EmpFirstName.Text = vbNullString Then
MsgBox "Value required", vbOKOnly, "First Name Missing!!"
'Cancel
Me.EmpFirstName.SetFocus
End If
End Sub
Thanks In Advance
have a text field named "EmpFirstName", when I leave this field, if for any
reason the field is blank I would like to see a msgbox. I get an error when
I use the "Cancel" code, but when I don't I can just tab to the next field.
Private Sub EmpFirstName_AfterUpdate()
If Me.EmpFirstName.Text = vbNullString Then
MsgBox "Value required", vbOKOnly, "First Name Missing!!"
'Cancel
Me.EmpFirstName.SetFocus
End If
End Sub
Thanks In Advance