Insert a tab control on a page of another tab control

D

Dale Fye

I'm working on a loaner laptop (Access 2003, SP2). Am trying to insert a new
tab control onto a page of an already existing tab control. But every time I
try to position the control on the other tab, it is pasted on the form, not
on the other tab page.

Any recommendations?
 
M

Marshall Barton

Dale said:
I'm working on a loaner laptop (Access 2003, SP2). Am trying to insert a new
tab control onto a page of an already existing tab control. But every time I
try to position the control on the other tab, it is pasted on the form, not
on the other tab page.


A tab control page can not contain another tab control.
There are two common workarounds for this limitation.

One is to go ahead and put the inner tab control on the main
form and only make it visible when the appropriate main tab
control page is selected:

Sub tabcontrol_Change()
Me.subtabcontrol.Visible = (Me.tabcontrol = K)

where K is the page number of the page you want the
subtabcontrol.

The other is to create a subform for the subtab control and
put that on the main tab contrrol page.
 
D

Dale Fye

You know Marshall, I knew I had a couple of apps where I had a tab displayed
in a tab, and I knew I could put it on the form, and hide it, but it was the
subform with a tab that I had used before.

Thanks for the reminder.
 

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