Tab Controls

W

williamr

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.
 
V

Van T. Dinh

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.
 
W

williamr

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.
 
Top