Forms and Subforms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I get a form to open in Access with the focus in a control in the main
form rather than the subform? It seems to default to the subform every time.
 
In the Open event, use something like:

Me!txtYourControl.SetFocus

--
Good luck

Jeff Boyce
<Access MVP>

IRS said:
How do I get a form to open in Access with the focus in a control in the main
form rather than the subform? It seems to default to the subform every
time.
 
How do I get a form to open in Access with the focus in a control in the main
form rather than the subform? It seems to default to the subform every time.
set the "Tab Order" of the form
or
set the Tab Index of the control (which you want to be first) to 0
 
Back
Top