How can you set tabs between subforms so they will tab to next for

B

blanch2010

I have created a form and added 4 subforms to it. How can you get the tabs
from one form to land in the next form without clicking the next form to
activate it?

Hope I'm explaining myself well?

Thanks
Don
 
J

John W. Vinson

I have created a form and added 4 subforms to it. How can you get the tabs
from one form to land in the next form without clicking the next form to
activate it?

Hope I'm explaining myself well?

Thanks
Don

One way to do this is to put an extra unbound textbox on the first subform. It
must be enabled and visible, but you can put it behind another control, and/or
set its size to one twip square so the user can't click into it
unintentionally. Put it last in the Tab order and set its GotFocus event to

Private Sub txtRelay_GotFocus()
Parent!secondsubform.SetFocus
Parent!secondsubform.controlname.SetFocus
End Sub
 

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