On Got Focus?
- From: "Jeff M" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Mar 2005 07:00:20 -0800
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
.
- Follow-Ups:
- Re: On Got Focus?
- From: Ken Snell [MVP]
- Re: On Got Focus?
- Prev by Date: Re: If Then Else Statement
- Next by Date: write input values from users to a text file
- Previous by thread: Why Report Doesn't Run on Split Database
- Next by thread: Re: On Got Focus?
- Index(es):