Tab Control in Forms

  • Thread starter Thread starter Hilary Willard
  • Start date Start date
H

Hilary Willard

Can anyone help me with the following: I have added the
Tab Control from the toolbox to my form in order to have
a "multiple page" form. However, any field that I place
on this tab control is applying to all the tabs of that
control. In other words, when you click on the various
tabs, the same controls and fields are on each one. How
can I configure this so that each tab has unique contents?
 
Hilary Willard said:
Can anyone help me with the following: I have added the
Tab Control from the toolbox to my form in order to have
a "multiple page" form. However, any field that I place
on this tab control is applying to all the tabs of that
control. In other words, when you click on the various
tabs, the same controls and fields are on each one. How
can I configure this so that each tab has unique contents?

Only *New* controls can be dragged onto a Tab Page. For existing controls you need
to cut them to the Windows Clipboard, select the desired Tab Page and then paste. If
any of the controls have Event Procedures attached to them you will need to re-enter
the "Event Procedure" property into the event property box. The associated event
code will still be there.
 
I have just used the tab control to create multiple
subforms on each individual tab. I tested also to see if
I ran into the same problem by using individual fields.
When I drag a field over from the field list and drop it
on Page 1 of the tab control and then view in form view I
do not see that field on page 2. What version of Access
are you running? Are the controls you are adding from one
table or query?
 
to move an existing control from the form onto a page in
the tab control:
1. click on the control in design view, and click Cut on
the toolbar.
2. click on the SPECIFIC PAGE you want to put it on, and
click Paste on the toolbar.
3. if you had any event procedures attached to that
control, you may have to double click the appropriate event
(s) in the control's Properties box to re-link the
procedure to the control's event.

to add a new control to a tab page:
1. click on the SPECIFIC PAGE you want to put a control on.
2. click a control in the Toolbox, and place it on that
page without clicking anywhere else first.

to add an existing form to a tab page, as a subform:
1. click on the SPECIFIC PAGE you want to put a subform on.
2. drag the subform's icon from the database window onto
that page, without clicking anywhere else first.

fyi, sometimes you may WANT a control to show on all pages
(such as a command button used to close the form). in that
case, create the control on the form, outside of the tab
control. then drag (DON'T cut/paste) it into position on
the tab control.

hth
 
Back
Top