Tab Stops

G

Guest

I have a form/subform where tabstop 4 is the subform. Successive tabs walk
me thru all the records in the subform. so far so good. the problem is how
do I get the tab key to pick up the next tabstop (5) on the main form? If I
use the mouse to set the focus on the correct control outside the subform the
tab sequence works OK and keeps tabs in the correct sequence.

How do I get the tab to leave the subform and return to the main form??
 
A

Arvin Meyer [MVP]

Since the tab index is zero based, tabstop 4 is probably page (3). But to
answer your question, use the AfterUpdate value of the last control or the
form to set focus to a control on the main form, something like this
(aircode):

Sub Form_AfterUpdate()
Me.Parent.txtWhatever.SetFocus
End Sub
 
G

Guest

thanks for the quick reply Arvin. I had thought what you suggested was a
solution but I was hoping there was some property setting of the subform that
I could use instead. no such luck - brute force wins again. by the way i
was referring to tabstops of controls on one form, not tabs to select pages.

Is 'aircode' untested?? I like the term

thanks again.
 
V

Van T. Dinh

Ctrl + Tab should let you get out of the Subfor and move the Focus to the
next Control on the main Form ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top