Insert a tab control on a page of another tab control

Insert a tab control on a page of another tab control

Post by RGFsZSBGeW » Mon, 03 Mar 2008 05:21:00


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?
--

email address is invalid
Please reply to newsgroup only.
 
 
 

Insert a tab control on a page of another tab control

Post by Marshall B » Mon, 03 Mar 2008 06:32:17


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.

--
Marsh
MVP [MS Access]

 
 
 

Insert a tab control on a page of another tab control

Post by RGFsZSBGeW » Mon, 03 Mar 2008 06:46:00

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.
--

email address is invalid
Please reply to newsgroup only.