Problem converting a form with multiple tabs to a single form...

  • Thread starter Thread starter Rashar Sharro via AccessMonster.com
  • Start date Start date
R

Rashar Sharro via AccessMonster.com

Hi,

I am having some difficulty taking a form that currently has 7 tabs, and each
tab has a subform assigned to it, and converting it to a form with a
navigation pane without tabs.

What I would like to do is have 7 links or icons in my navigation pane, that
when clicked for each item, the form corresponding form appears on my main
form as opposed to using a tabed approach.

My forms have to be loaded on a single form because each form has code that
makes a reference to another form and the code will not work if 1 of the
forms is not loaded.

Any ideas would be greatly appreciated.
 
not sure i'm following your question. if you have a main form with seven
subform controls on it, putting each subform on a separate page of a tab
control does not "change" anything - you still have a single main form with
seven subform controls on it. if all seven subform controls are bound (have
a subform name in their SourceObject property), then all seven subforms will
be loaded when the main form is opened.

using a "navigation pane" to bind a single subform control to a specific
subform is not difficult, but the end result would be that you have only one
subform loaded at any given time - not all seven of them at once.

if none of the above is helpful, please provide additional details of what
you're trying to accomplish.

hth
 
Thanks for your reply...

- Lets say I have formA.
- formA has 7 tabs.
- each of those tabs has a subform in it.

What I want to do is have a navigation pane with 7 links or icons that when
pressed, the information on the corresponding tab loads up.

Here is my problem:

I have created 7 seperate forms, each form has a subform. I have a navigation
pane that calls the forms individually when the icon's in the navigation pane
are selected. Problem is, when say frm1 loads, the code may look for a text
box on frm3. However, this will not work because frm3 is not loaded at the
same time frm1 is loaded.

Where as when I had my tabbed approach, when formA loads, all 7 tabs are
loaded at the same time, but you can not see the form for each tab until it
is selected.

I hope this makes a little more sense...
 
well, the only thing i can think of is to open all 7 separate forms, with
each form's Visible property set to False. even though a form is not
visible, i believe you should still be able to refer to a control on it. you
can use the navigation pane on your "main" form to make any specific form
visible, and the other 6 forms not visible.

seems like putting 7 subforms on a single main form is just as easy, though.
you can do this with a tab control where the Style property is set to None
(so it doesn't look like a tab control), or simply put the subforms on top
of one another without using a tab control, and set each subform control's
Visible property to True or False as needed.

hth
 
Back
Top