R
Richard Mask
I got this to work but was wondering why I had to go to a control after the
control I was checking for null and then set focus back to that control.
Private Sub TrailerNumber_Exit(Cancel As Integer)
If IsNull(Me!TrailerNumber) Then
MsgBox "You must enter a Trailer Number"
End If
DoCmd.GoToControl ("TruckLine")
TrailerNumber.SetFocus
If I , DoCmd.GoToControl (TrailerNumber) or try to
Setfocus back to the TrailerNumber control it always goes to
the next control TruckLine But the above sets focus back to the
TrailerNumber control properly. I hope this makes sense.
control I was checking for null and then set focus back to that control.
Private Sub TrailerNumber_Exit(Cancel As Integer)
If IsNull(Me!TrailerNumber) Then
MsgBox "You must enter a Trailer Number"
End If
DoCmd.GoToControl ("TruckLine")
TrailerNumber.SetFocus
If I , DoCmd.GoToControl (TrailerNumber) or try to
Setfocus back to the TrailerNumber control it always goes to
the next control TruckLine But the above sets focus back to the
TrailerNumber control properly. I hope this makes sense.