Hi all, I know this is an old thread, but I'm now tacking the same issue. I don't have much programming experience, so any help is greatly appreciated. I mentioned my issue in a
thread, and
John Big Booty suggested I read this thread for some suggestions.
I've tried a few combinations of code in the On Lost Focus field as suggested by Luddite Lad , however haven't had much success.
A few trials that didn't work:
Private Sub OccListID_LostFocus()
If Me.OccListID = Null Then
JobDescription.SetFocus
End If
End Sub
Private Sub OccListID_LostFocus()
If Me.OccListID = Null Then
DoCmd.GoToControl JobDescription
End If
End Sub
Private Sub OccListID_LostFocus()
If Me.OccListID = Null Then
DoCmd.GoToControl Forms!Employment!JobDescription
End If
End Sub
Are you able to paste the code you used? I'm not sure if I should be using Set Focus, or GoToControl...?
Many thanks!