Forms and Subforms

I

IRS

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.
 
J

Jeff Boyce

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.
 
A

Andi Mayer

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
 
Top