J
Jeff M
I have a form that is used to lookup a specific record in
the underlying table based on user input in the Text1
field. When user input does not match any record on the
table, an error window pops up detailing the error, and is
closed when the user clicks the OK button.
How can I make it so that when the error window closes,
that the tab control automatically goes back to the Text1
field? I have tried to set the On Got Focus property as
follows, but it doesn't work:
Private Sub Form_GotFocus()
DoCmd.GoToControl , "[Text1]"
End Sub
the underlying table based on user input in the Text1
field. When user input does not match any record on the
table, an error window pops up detailing the error, and is
closed when the user clicks the OK button.
How can I make it so that when the error window closes,
that the tab control automatically goes back to the Text1
field? I have tried to set the On Got Focus property as
follows, but it doesn't work:
Private Sub Form_GotFocus()
DoCmd.GoToControl , "[Text1]"
End Sub