Same subform in multiple tabs of tabbed control ???

G

Guest

I have a tabbed control, within 3 of the tabs I have a subform containing a nested tabbed control (the only reason I use a subform - it is not linked to the main form in any way). The same subform is in each tab and it is formatted depending on which main tab is clicked. But Access insists on me giving each subform a unique name
Does that mean that I cannot manipulate the contents of this subform using a single name but I have to treat it as three separate subforms? In other words, I have to format three subforms instead of just one?
 
D

david

Have you considered an altenative to using the Tabs? I've
never tried this myself, so I'm not sure how it will
work...but....

If you used a general Subform and had buttons instead of
Tabs for each Tab heading, you could reset the record
source for the subform when the button is clicked.

btnCustomer would have for its On Click event

Me.SubForm.SourceObject=frmCustomer

then use

Me.Recalc

to refresh and recalculate the frmMain.

This way you only have one basic Subform on your form that
acts as a skeleton framework into which your other forms
can be loaded into as well. Please let me know if that
works - that is if it is something you try.
-----Original Message-----
I have a tabbed control, within 3 of the tabs I have a
subform containing a nested tabbed control (the only
reason I use a subform - it is not linked to the main form
in any way). The same subform is in each tab and it is
formatted depending on which main tab is clicked. But
Access insists on me giving each subform a unique name.
Does that mean that I cannot manipulate the contents of
this subform using a single name but I have to treat it as
three separate subforms? In other words, I have to format
three subforms instead of just one?
 

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