working with a tab control with no tabs in design view

P

Phil Reynolds

I'm using a tab control in Access 2000, and the user requested to have
buttons in the form header, instead of the built-in tabs (so that when they
scroll down, they can still switch tabs). Now, this works fine. However,
when I'm in Design View, I can't access the tabs without changing the tab
control's Style back to Tabs. But I want to be able to place controls in
that space at the top where the tabs used to be. But if I need to turn the
tabs back on when I need to make design changes, then I can't do that. So
the result is wasted space at the top of the tab control, because I have to
toggle the tabs back on whenever I need to make design changes.

Is there a way to cycle through the tabs in a tab control in design view
without the tabs being on? I can select the tab control, itself, by using
the Object dropdown in the toolbar; but I can't get to tab 2, 3, etc.,
unless I turn the tabs back on. There must be a way to do this. How else
would one work with it in Design View with the tabs off?

Thanks for any assistance.
 
R

Rick Brandt

Phil said:
I'm using a tab control in Access 2000, and the user requested to have
buttons in the form header, instead of the built-in tabs (so that
when they scroll down, they can still switch tabs). Now, this works
fine. However, when I'm in Design View, I can't access the tabs
without changing the tab control's Style back to Tabs. But I want to
be able to place controls in that space at the top where the tabs
used to be. But if I need to turn the tabs back on when I need to
make design changes, then I can't do that. So the result is wasted
space at the top of the tab control, because I have to toggle the
tabs back on whenever I need to make design changes.
Is there a way to cycle through the tabs in a tab control in design
view without the tabs being on? I can select the tab control, itself,
by using the Object dropdown in the toolbar; but I can't get to tab
2, 3, etc., unless I turn the tabs back on. There must be a way to do
this. How else would one work with it in Design View with the tabs
off?
Thanks for any assistance.

Each page of the TabControl is also listed in the Object dropdown in the
toolbar. When I use that style of TabPage I name them so that they are pushed
to the top of the list to make it easier ("AAATabPage1" or similar).
 
M

MikeB

set the tab style to none in the onActivate event:

Me.TabCtl0.Style = 2

you will have the set the TOP property at the same time to account for the
shift of the control without the tabs.
 
T

tina

in addition to Rick's solution, you can choose any control from the Object
dropdown list, that is on a particular tabpage, and that will bring that
page "to the front".

hth
 
P

Phil Reynolds

Ah cool! Thanks!

Rick Brandt said:
Each page of the TabControl is also listed in the Object dropdown in the
toolbar. When I use that style of TabPage I name them so that they are
pushed to the top of the list to make it easier ("AAATabPage1" or
similar).
 
P

Phil Reynolds

Actually what I found was that the tab control, itself, stays in place
relative to the controls outside of it; but there's an extra space *inside*
the control at the top, where the tabs used to be. I want to use that extra
space for the controls inside the tab control, which is why I couldn't
toggle back and forth.

Thanks.
 

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