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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Sequence

Status
Not open for further replies.

mtwildtrout

Technical User
Oct 1, 2003
23
0
0
US
I have a main form with one subform. When the form opens it sets focus on the Employee number. After entering the employee number, the next tab sequence takes you into the first tab field in the subform. After entering all information required by the subform, the very last field is a Save button. After pressing the Save button, focus then goes to the first tab field contained in the subform.

I would like to have the focus set to the employee number contained on the main form after pressing the Save button. Is there a way to do this by setting the tab sequence or do I need to set focus to the employee number field on the main form as part of the Save code?
 
You will need to do that in code from the sub-form. Like this:

Parent![txtEmployeeNumber].SetFocus
 
Thanks for the suggestion, I'll give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top