tabbed form within tabbed form, how refer to controls ?

G

Guest

I have a tabbed control each tab of which has another tab control within it

I am lost on how to refer to controls in these tabbed forms. Access Help is useless
I'm relying on the prompts and I just dont see the methods and properties I am expecting

When I click on a tab, I want to change the font weight of all the main tabs to normal and the font weight of all the tabs on the contained tab control to bold. How to do it
I cant find the fontweight property anywhere
 
M

Michel Walsh

Hi,


You cannot directly embed a tab control into another one. By
default, the top one is just a control "over", no embedded; ie, you have two
independent tab-controls, not one embedded in the other.

To reach a control in a tab control, do AS IF there was no tab
control at all.

To insert a tab control in another, proceed like this:

Create the first tab control,
Create a subform that will be part of the previous tab
control,
In the subform, add a tab control.


See http://www.mvps.org/access/forms/frm0031.htm about how to refer to
element in subforms. I remember that for tab controls, do as if there was
not tab control... but if you use forms to "embed" tab controls, you have to
pass through the subform syntax.



Hoping it may help,
Vanderghast, Access MVP

david said:
I have a tabbed control each tab of which has another tab control within it.

I am lost on how to refer to controls in these tabbed forms. Access Help is useless.
I'm relying on the prompts and I just dont see the methods and properties I am expecting.

When I click on a tab, I want to change the font weight of all the main
tabs to normal and the font weight of all the tabs on the contained tab
control to bold. How to do it?
 

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