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

Tab stops with subforms

Status
Not open for further replies.

tonyblazek

Technical User
Mar 22, 2001
10
US
Hello all, I have a form that has 2 subforms. Does anyone know how to make the tab stop move on to the next subform? Right now once in the first form the tab cycles within the form and won't move onto the next form. Thanks, Tony
 
Hi Tony

You can do this with code within the first subform.

You can set code to run whenever a particular event occurs. I tend to use a field being null.

In the field's after update event, test for the field's value. If it is null, move back to the parent form, otherwise do something else on the subform.

If IsNull(Myfield) then
Parent.Setfocus
Parent.NextSubform.Setfocus
Else
...Do something here
End If

HTH

Lightning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top