By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,017 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,017 IT Pros & Developers. It's quick & easy.

How do you make the page tab the first tab stop?

P: n/a
I have a form with 4 pages. I'm not sure of the correct name, but I
will refer to the tabs at the top of the form that list the names of
the four pages as the "page tabs".

When the form opens, the body of the form automatically scrolls down to
the first tab stop on the form. This causes the body of the form to
scroll down so far that the page tabs are no longer viewable. That is
undesirable for two reasons. First, if a user wants to click on a page
tab to navigate to another page, they have to scroll up first. Second,
some new users may not recognize the scroll bar and may not realize
that there are other pages available.

I notice that after I tab through the last tab stop on the page, the
tab goes back up to the top and rests on the actual page tab.

So I looked at the tab order to see if the page tab was listed at the
bottom, thinking that I could just move it to the top. However, it was
not listed; nor could I find any tab stop properties for the page tab
itself.

So my question is...
Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set a property on the form or the page so
that when the form opens, all of the tabs for all of the different
pages are viewable at the top?

Aug 1 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"DrifterKona" <dr*********@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I have a form with 4 pages. I'm not sure of the correct name, but I
will refer to the tabs at the top of the form that list the names of
the four pages as the "page tabs".

When the form opens, the body of the form automatically scrolls down to
the first tab stop on the form. This causes the body of the form to
scroll down so far that the page tabs are no longer viewable. That is
undesirable for two reasons. First, if a user wants to click on a page
tab to navigate to another page, they have to scroll up first. Second,
some new users may not recognize the scroll bar and may not realize
that there are other pages available.

I notice that after I tab through the last tab stop on the page, the
tab goes back up to the top and rests on the actual page tab.

So I looked at the tab order to see if the page tab was listed at the
bottom, thinking that I could just move it to the top. However, it was
not listed; nor could I find any tab stop properties for the page tab
itself.

So my question is...
Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set a property on the form or the page so
that when the form opens, all of the tabs for all of the different
pages are viewable at the top?
One of the primary reasons to use tab pages is so that the total size of the
form can be kept small enough so that scrolling is not necessary at all. I
would resize your form so that scrolling does not happen regardless of which
control has focus.
Aug 1 '06 #2

P: n/a
Unfortunately, that is not an option in this case. All data is grouped
together according to category, so all controls that are on each page
need to stay on their respective pages. So with that in mind...

Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set the form or the page so that when the
form opens, all of the tabs for all of the different pages are viewable
at the top?

Aug 1 '06 #3

P: n/a
The tab control is in the tab order of the detail section.

You are probably look at the tab order of the controls
on a page.

The tab order of the pages is the page order.

But this will not solve your problem. If you want the tabs
to have focus at startup, your problem is not tab order within
a section. Your problem is that the wrong section has focus.

There is no 'focus priority' setting. If you wish to
set focus away from the first control on the first page
in the detail section, you need to use a SetFocus command
in your form Load event.

me.mytabcontrol.setfocus

(david)
"DrifterKona" <dr*********@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I have a form with 4 pages. I'm not sure of the correct name, but I
will refer to the tabs at the top of the form that list the names of
the four pages as the "page tabs".

When the form opens, the body of the form automatically scrolls down to
the first tab stop on the form. This causes the body of the form to
scroll down so far that the page tabs are no longer viewable. That is
undesirable for two reasons. First, if a user wants to click on a page
tab to navigate to another page, they have to scroll up first. Second,
some new users may not recognize the scroll bar and may not realize
that there are other pages available.

I notice that after I tab through the last tab stop on the page, the
tab goes back up to the top and rests on the actual page tab.

So I looked at the tab order to see if the page tab was listed at the
bottom, thinking that I could just move it to the top. However, it was
not listed; nor could I find any tab stop properties for the page tab
itself.

So my question is...
Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set a property on the form or the page so
that when the form opens, all of the tabs for all of the different
pages are viewable at the top?

Aug 1 '06 #4

P: n/a
I apologize, I'm quite new to this. You said...

There is no 'focus priority' setting. If you wish to
set focus away from the first control on the first page
in the detail section, you need to use a SetFocus command
in your form Load event.

me.mytabcontrol.setfocus

So I went to the form, selected design view, clicked Edit, then Select
Form.
I then clicked View then clicked Properties.
I went down to On Load in the form properties box then pasted in
me.mytabcontrol.setfocus
I saved and tested. I got an error message.

So I tried building an expression and building a macro, but those
didn't work either.
I know I'm not doing something right. I tried a few different ways,
but I'm not getting it. Could you help me with the steps?

I appreciate it very much.

Aug 1 '06 #5

P: n/a
What's the name of your tab control? Did you modify the code at all?

Me.Controls("Put the name of your tab control here").SetFocus

Aug 1 '06 #6

P: n/a
Thank you all. That helped very much. The me.tabcontrolname.setfocus
worked. I didn't understand at first, but then realized that had to go
in the VB code via the code builder. It works like a charm. Thanks
again for all your help.

Aug 3 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.