Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabbing between subforms and main on form page

Status
Not open for further replies.

Imbriani

Programmer
Jan 9, 2004
195
0
0
US
I know this is probably a very simple question, but I can't seem to find an answer in help files of books. Is there a way set the tab order on a form so that users can tab smoothly between controls on the main form and the subforms on the same form page.

Any help is always appreciated.

Kathy
 
Fore the last one in tab order you could probably create a macro for the On Exit event that runs SelectObject for the subform. I assume focus would move to the first field in its tab order. I haven't tried this, mind you.

 
I was able to do that for the control just above the subform, but once I'm in the subform, I haven't been able to find a way to move to the next subform by using the Tab.

Kathy
 
I use this simple code, I hpe it will work for you.
This changes the focus to the main form every time you click any sub-form tab.

DoCmd.SelectObject acForm, "MymainForm", False
DoCmd.GoToControl "Name"
Forms!Consolidated.Employment.Visible = False
Forms!Consolidated!NewReferallsT.Form.Visible = False
Forms!Consolidated!NarrativeT1.Form.Visible = False
Forms!Consolidated!Referall Rej.Form.Visible = False
Forms!Consolidated!Closings.Form.Visible = True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top