controls on subforms

C

Chris

Hello Group.

I have a form (frmMain) and on that form I have used the tab control- pge1,
pge2, pge3. On these pages I have subforms.

I would like the a checkbox on the subform on page1 to make the tab (pge2)
visible when ticked.

I'm have tried the following code;

'Forms!frmMain.pge2.Pages(1).Visible = Forms!sfrmsub1.chkbox.Value

Helping me can be your good deed for the day!
 
S

StCyrM

Hi Chris

The proper syntax to access the control on the subform would be as follows:

'Forms!frmMain.pge2.Pages(1).Visible = Forms!sfrmsub1.form!chkbox.Value

Best regards

Maurice St-Cyr
Micro Systems Consultants, Inc.
 

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