G
Gary Hull
Can you nest on tab controal on another
I have too many tabs on my form
I have too many tabs on my form
You can put a sub-form on a tab page, and then have a tab control in that
sub-form. This is the closest to "nesting" that you can do.
Gary Hull said:Could you post some code examples for you suggestions
Thanks again
tina said:the way i approach it is: you can only look at one tab page of a tabcontrol
at a time, no matter how many tab pages you have. so you can only look at
the subform(s) contained on a single tab page at any given time. combine
this with the fact the the more bound subforms you put on a mainform, the
longer it takes to load the mainform - 15 bound subforms is a fairly
horrifying number. (i use three subforms on a single mainform only when i
absolutely must, two fairly often for related subdata, but preferably just
one whenever possible.)
try starting with one subform. you can put a tab control "on top" of it, and
the subform will "show through" every page. then add code to the tab
control's Change event procedure, to change the subform's SourceObject
property - and if necessary the LinkChildFields and LinkMasterFields
properties - to display the appropriate subform for the tab selected.
some variations:
1) i often use option group controls, with toggle buttons, at the top of a
subform control that has the Style property set to None so no tabs show. i
like having more control over the page "headers" than i can get using the
built-in tabs.
2) for many subforms, such as you have, i usually dispense with the tab page
"headers" altogether, and often the tab page itself. instead, i use a
listbox (bound to a table) that lists all the subforms i want to make
available to the user, with a visible column showing user-appropriate names,
and a hidden column containing the "real" form names. then i run code from
the listbox's AfterUpdate event procedure that changes the subform
SourceObject to the form name selected by the user in the listbox. i'm
currently using a this setup in a database at work, with a list of 34
available subforms at last count.
one of the great things about Access is the almost limitless ways you can
set up a user interface to achieve whatever your goal is.
hth
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.