How to set focus to the first control in a Tab control

S

SheickSouth

Hi
I am a newbie and tearing my hair out. How do Ai set focus to the first
control in a tab.

What I want ot do is that when a user finishes the last field on the
main form the focus must jump imediately to the first control of the
first tab of the Tab control. (unfortunately the default is that focus
is set to the first tab. This requires the user to hit tab again to
enter set focus to the first control. I like to eliminate this
additional hitting tab to continnue entering data).

I have searched far and wide but I am not getting it.

Me.TabCt01.Type.setfocus does not work.
How is the logic to refer to the various levels of nested elements.

Is there somewhere a list of all possibilities form
Me.
to something like
Me.Tab.SubformOnTab.ControlOnSubform.setfocus?

When do you use the "." when the "!"

I appreciate any help.
 
A

Allen Browne

In the AfterUpdate event procedure of the last text box, just SetFocus to
the first text box, e.g.:
Me.[Text0].SetFocus
 

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