Tab Controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to control the tabs from my form to my subforms. I used
me.Zip.tabindex = 5 and that gets me to the last field in the form but how do
I get to my subform?

Thanks
Wm.
 
Me.SubformControl.SetFocus

will get you to the first visible / enabled Control in the Subform (I
think). If you want to go to a particular control on the Subform, you then
use:

Me.SubformControl.Form!ControlOnSubform.SetFocus

Note: You need to check the name of the SubformCONTROL in the DesignView of
the Main Form since it may be different from the name of the Form being used
as the Subform.
 
Thank You!

Van T. Dinh said:
Me.SubformControl.SetFocus

will get you to the first visible / enabled Control in the Subform (I
think). If you want to go to a particular control on the Subform, you then
use:

Me.SubformControl.Form!ControlOnSubform.SetFocus

Note: You need to check the name of the SubformCONTROL in the DesignView of
the Main Form since it may be different from the name of the Form being used
as the Subform.
 

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

Back
Top