Tab control within a tab control

Tab control within a tab control

Post by V3VsbGl » Thu, 12 Feb 2009 03:46:02


Hi,

Is there any way to have a tab control on a tab of a tab control?

I have pupil data that I have split between details, attendance and other so
far.

In the attendance tab, I was looking to split this up further into
attendances of year and splitting this up by a tab per year.

Is this possible to do? I tried to cut a tab control and paste onto the
orignal tab, but when pasting onto the tab, it just adds another tab to the
original (if I do it straight onto the form, it puts the new tab onto all
tabs of the main one)

I did look at creating a subform on the tab, entering the tabs on the
subform, then displaying a subform on each of those tabs - which seems very
longwinded to me and also meant that I could not get stuff aligned well
enough (always seemed to centre the inner tab, even after changing auto
resize and auto center to no).

Any advice with this would be greatly appreciated.

Thanks
 
 
 

Tab control within a tab control

Post by V3VsbGl » Thu, 12 Feb 2009 03:47:04

Hi,

Is there any way to have a tab control on a tab of a tab control?

I have pupil data that I have split between details, attendance and other so
far.

In the attendance tab, I was looking to split this up further into
attendances of year and splitting this up by a tab per year.

Is this possible to do? I tried to cut a tab control and paste onto the
orignal tab, but when pasting onto the tab, it just adds another tab to the
original (if I do it straight onto the form, it puts the new tab onto all
tabs of the main one)

I did look at creating a subform on the tab, entering the tabs on the
subform, then displaying a subform on each of those tabs - which seems very
longwinded to me and also meant that I could not get stuff aligned well
enough (always seemed to centre the inner tab, even after changing auto
resize and auto center to no).

Any advice with this would be greatly appreciated.

Thanks

 
 
 

Tab control within a tab control

Post by Q2xpZmZvcm » Thu, 12 Feb 2009 07:48:01

Hi Wullie,

The answer from a little experimentation appears to be "no". Instead
of breaking up the years onto separate tabs, I would suggest you use a combo
box on the main form that lists the years of data that you have and with
which you select the appropriate year. Then as your form's control source
use a query that references the combo box:

select * from YourTable where SchoolYear =
[Forms]![YourForm]![cbSelectSchoolYear]

And in the select school year combo box's after update event do a
Me.Requery.

Hope that helps,

Clifford Bass
 
 
 

Tab control within a tab control

Post by Linq Adams » Thu, 12 Feb 2009 11:13:34

The only way to place a tabbed control on a tabbed control is to first place
a subform on the first tabbed control, then place a tabbed from on that
subform.

As Clifford has suggested, a re-think of your overall design is probably in
order.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.yqcomputer.com/