When you have a large number of controls to show, you can use a tab control to put your controls on separate pages. You can tuck a large number of controls into a small space with this kind of control. In the illustration below, each page in the tab control holds one or more controls. This layout is better for looking up information than it is for entering new data.

Click on each tab in the tab control to see each page.
The illustration is from the DayCamp.accdb
database in your resource files.
Create Tab Control:
Parts of a tab control:
Selecting
the whole tab control:
Selecting a tab page:
If there is a control underneath the tab control, its selection border and handles will show
if you click in the page area over the hidden control. Of course you do not
normally want to have controls that are hidden by a tab control. This
situation can occur while you are revising your form.Name Property for Tab Control and Pages:
Tab Icons: Picture Property
You can include a small image beside the tab label or instead of text using the Picture property for the tab page.
Built-in icons: Formatting a tab control:
Access 2010, 2013, 2016: Back Color property in the Property Sheet for the tab control affects only the inactive tabs, not the pages or the active tab.
(Access 2007 does not have a Back Color property for the tab control.)
Page Background:
Option 1: Transparent background > Form background:
Access 2010, 2013: The tabs become transparent, too, so you cannot tell which one is active!
If you also set the property Use Theme to No for the tab control, then the form looks like an Access 2007 form but at least the tabs work as expected.
Option 2: Normal background with Rectangle or Image underneath controls: 
Tabs
in Multiple Rows:
It is handy to have multiple rows of tabs if the label
text is long or if you have a large number of tabs.
New controls:
Field List: Drag from the Field List but be sure
that the page area highlights (reverse colors) when your mouse drags over it. Drop. If there is no highlight, you drop onto the form instead of onto the tab page.Move existing controls to a tab page:
You must use copy-and-paste to move existing controls to a tab page. Dragging won't work!
No drag-and-drop to
move existing controls.
If you drag and drop an existing control onto a tab page, the control goes underneath the tab control instead of onto the tab page.
Right click on the tab control and select Insert
Page .
Change
order of pages in the tab control:You cannot drag the tabs on the control. The Page Order dialog shows the Name or Caption values for the pages. You cannot drag items around in this list.
To move through all of the controls on a form by using the TAB key can be a bit tricky when the form has a tab control. The tab order for the form just shows the tab control itself. Each page has its own tab order. More than a bit confusing!
Solution: You must use CTRL + TAB to change to the next tab page. Confusing for sure!!
Tab order for a tab page: Each tab page has its own tab order. In Form Design View select a tab page and then right click on it. Select Tab order... from the context menu.
| |
Step-by-Step: Tab Control |
|
| What you will learn: | to create a tab control to rename tabs to format tab text to add and configure tab pages, including multiple row tabs to move controls to tab pages to verify tab page content to edit Property Sheet to resize form to verify tab order to set Scroll Bars property |
Start with:
, resource files, worldtravel-Lastname-Firstname.accdb from folder databases project4 as updated in the previous lesson
You have so many controls on the Staff form that even with a logical arrangement it is rather hard to read the data. It's worth revising!
Open the form Staff-formatted from the previous lesson in Form Design View.
Click on the Tab Control button
Click in the blank area below the Hobbies control.
A tab control appears
with the default properties. The page numbers on your tabs may be
different from the illustration.
The form automatically widened to hold the new control at its default size. That will be something to fix later.
Like many other controls, tab pages have both a Name property and a Caption property. These are not the same! Captions can be duplicated on a form, but a value for a Name property cannot.
For example, if a form contains controls for a mailing address and a physical address, you might have two labels that show "City". But the controls must be named differently, like MCity and PCity.
It is always a bad idea to use the name of a property (any property!) as the value for a property (any property!). When writing expressions or programming code, it is too easy to confuse the computer, and the programmer, about what you are talking about - a value or a property.
Click on the tab control and then click on the first tab to select it.You can change the font for the tabs to something you like better.
Click on the edge of the tab control to select the whole control.
Right
click on the tab control and select from the menu that appears.Similarly, create tabs that have the following text:
Company Info
Personal Info
Emergency
Notes
Problem: Error!
The name Notes is already used by a control on the form.
You changed the Name property instead of the Caption property.
Solution: Undo your last change and edit the Caption property instead.

Access 2007: A pair of navigation arrows appears at the top right of the tabs when they won't fit across the width of the tab control.

Access 2010, 2013, 2016:
The tab control automatically widens to hold the new tabs. That may not be the best arrangement.
Select the whole tab control.
Reorder
tabs:
Click on OK.Now comes the trickiest part. To move the existing controls onto tab pages, you must use Copy and Paste. You cannot drag the existing controls and drop them onto a tab page. They would drop onto the form underneath the tab control instead.
First you will try drag and drop anyway, just to see what it looks like. It's quite confusing when this happens to you unexpectedly!
If necessary, click on the Name tab to make it the active tab.
Drag the selection to the tab control
Drop.
Click
on the edge of the tab control to select it.
Click on the Name tab to select that tab page.
Paste.Similarly, copy and paste the following controls to specified tab page:
Hint: Spacing between control and label and between controls will be preserved. If controls are not adjacent (next to each other), copy and paste them separately.
Phone #'s: all 5 phone number controls but not the colored rectangle behind them.
Mailing Address: 6 controls, from Address through Country
Company Info: 5 controls - StaffID, Title,
Division, Location, DateHired
Personal Info: 5 controls - EmailName,
EmailExtension, Birthdate, Nationality, Hobbies
Emergency: EmrgcyContact, EmrgcyPhone, Health
Issues
Notes: Notes
Now that nearly all of the controls have been moved to the tab control, you need to clean up the form layout. You will wind up with a smaller form.
Drag the tab control to the upper left of the Detail section.

You will be making the following changes in the steps below.
f necessary, open the Property Sheet.
Select the image photonotavailable.png and click on OK.
The name of this picture appears in the Property Sheet but the image does not show in Design View. The photo is now part of the database. Nothing you do to the original will affect it in the database.

Both scroll bars are showing in illustration of the Form View above. That means that the form itself is wider and taller than what shows in the window. We cannot tell if there are more controls that are out of sight. You need to resize the form.
You moved so many controls around that the tab order is probably out of sync.

Resize the form by dragging the edges until it is just large enough for the controls.
Problem: Form will not resize
A control is in the way, probably the dividing line.
Solution: Move or delete the control(s) that are blocking your resize.
Switch to Design View.
Make any corrections needed, such as to alignments and
control size and tab order.
The controls you moved should have kept the same tab order that you set earlier. That's not entirely what you need now. Make corrections as needed.
Tab Control: The tab control should be first in the form's tab order. Then Photograph and then DateUpdated.
As you used TAB to move through the controls, some text boxes may show short vertical scroll bars that look like an up arrow and a down arrow. A drop list has only a down arrow. Scroll bars are needed for Memo fields like Hobbies and Notes but should not be needed for properly sized text boxes.
For text box controls that show scroll bars, set the property Scroll Bars to None. 