Insert a tab control on a page of another tab control

  • Thread starter Thread starter Dale Fye
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top