hi, i have a text box in the form header that i want the user to enter a value into. i have the following code:
but if i click on another control, i get the message, but the focus goes to the other control.
any thoughts?
Code:
Private Sub JJID_LostFocus()
If Trim(Me.JJID) & "" = "" Then
MsgBox "You must enter a JJID before proceeding"
Me.JJID.SetFocus
End If
End Sub
any thoughts?