Microsoft Access Training

Combo Boxes and Form Enhancements

Improve the appearance and usability of Access forms by adding titles, formatting controls, aligning objects, and creating combo boxes for related data.

Start here

Overview

This lesson enhances the Client Entry/Edit form and replaces a difficult foreign-key entry with a combo box that displays meaningful related-table information.

What You Will Learn

  • Select and move multiple form controls.
  • Add and format a title label.
  • Apply color and other visual improvements to a form.
  • Create a combo box with the Control Wizard.
  • Retrieve combo-box values from a related table or query.
  • Store the selected key value in the correct field.
  • Resize and align form controls.
  • Test the enhanced form in Form View.

Before You Begin

  • Creating and using forms
  • Primary and foreign keys
  • Table relationships
  • Basic form Design View

Why This Matters

Users should not have to memorize foreign-key numbers. Combo boxes display understandable choices while storing the correct key value, making forms easier and safer to use.

Plan Your Study

  • Download and open the practice database.
  • Open the Client Entry/Edit form in Design View.
  • Move the existing controls to create space.
  • Add and format a form title.
  • Create the AgentID combo box with the wizard.
  • Choose the lookup source and stored value.
  • Align and format the controls.
  • Test the form with several records.

Next step

Read the complete chapter.

The Learn tab contains the written lesson from Surviving Statistics.

Go to Learn

Written lesson

Learn Combo Boxes and Form Enhancements

Improve the appearance and usability of Access forms by adding titles, formatting controls, aligning objects, and creating combo boxes for related data.

Advertisement

Combo Boxes and Form Enhancements

In this lesson, you will enhance a form’s appearance by adding titles and colors. You will also create combo boxes that allow you to lookup information from other tables when entering or editing data.

⬇
No Fault Travel Database to complete this chapter Open or download

Combo Boxes and Form Enhancements

1. Open the No Fault Travel database.

2. Display the Client Entry/Edit Form in Design View

Microsoft Access lesson screenshot Combo1

Using the Controls Group

To add combo boxes and other form elements, you will need to use the Controls group. You will find the Controls group on the Form Design Tools Design tab on the ribbon.

Microsoft Access lesson screenshot Combo2

3. If the Control group is not already displayed, click the Design tab under Form Design Tools.

4. Use the vertical ruler to select all the controls in the detail section of the form.

Microsoft Access lesson screenshot Combo3

When you move the mouse pointer to the vertical ruler, the pointer will become a black arrow. If you drag the black arrow on the vertical ruler from the form’s top to bottom, all controls will be selected.

5. Point to any control, until the mouse pointer becomes a four-headed arrow. (Avoid close proximity to the sizing handles.)

The four-headed arrow will move all selected controls.

6. Drag the controls down so that the top of the first row is approximately at the 1” vertical position.

Microsoft Access lesson screenshot Combo4

It may be necessary to increase the height of your form.

You will now use the Controls group to insert a label control at the top of this form. This label will serve as a title for viewing and printing.

Microsoft Access lesson screenshot Combo5

7. Locate and click the Label control.

You do not need to drag this control. Just click on it to select it. Then move the mouse to the desired location on the form and click. Once the mouse pointer is moved to the form, the pointer changes to represent the label tool.

8. Move the mouse pointer to the top left corner of the detail section and click.

If you move the mouse pointer off the form, the mouse pointer transforms to a no-entry symbol. Move back on the form, and click when you see the large letter “A”. When you click, a tiny label appears with a blinking insertion point (cursor) where you can type the text you want displayed.

9. Type Client Information Form in the label and press (Enter).

You may notice that warning symbol appears and opens a message that the label is an unbound control (i.e., not associated with any data).

You should the see sizing handles on label control, which indicate that the label is selected and you can make changes to its appearance.

Microsoft Access lesson screenshot Combo6

10. With the new label still selected, display the Form Design Tools Format tab. Change font size to 24 points.

The text font size increases, but the label control itself does not increase in size, so the text is no longer visible. In the next steps, you will have Access automatically adjust the size of the label control to fit the larger text.

11. Display the Form Design Tools Arrange tab.

12. Click the Size/Space tool and choose To Fit on the drop-down menu.

Microsoft Access lesson screenshot Combo7

The complete text should now be visible in the resized label control.

13. With the control still selected, drag the label to the top center of the used area of the form.

The horizontal and vertical rulers are helpful in positioning controls, but you do not need to be exact in this exercise.

Microsoft Access lesson screenshot Combo8

14. Click the Form Design Tools Format tab. Next click the drop-down arrow for font color. Select Dark Blue in the drop-down color options.

The label text should now be blue.

Creating a Combo Box

A combo box is a drop-down list that can appear on a form. Using a combo box, the data to be entered is selected from a list, instead of typed. Combo boxes are very useful for data entry and editing. In this part of the lesson, you will create a combo box that looks up and displays all travel agents in the Travel Agents table.

1. Click on the AgentID text box and press (Delete).

The text box is the “white box”. Deleting the text box will also delete the associated control AgentID label. You deleted this field because you will replace it with a combo box that looks up the travel agents directly from the Travel Agents table.

Microsoft Access lesson screenshot Combo9

2. Display the Design tab. Then, locate and click the Combo Box tool on the Controls group.

As you move the mouse pointer over the form, the pointer transforms its shape to represent the combo box tool. The plus (+) shows you where the box’s top left corner will be located when you click. A label control will also appear to the left of the combo box, so you also need to make sure that there will be enough space for the label.

3. Move the mouse pointer just to the right of where the AgentID text box was located, and click.

The plus (+) should be about 3.5” from the left side. Use the horizontal ruler as a guide. Do not worry about being exact. You will adjust the combo box’s position later in this exercise. When you click, the Combo Box Wizard opens.

The Combo Box Wizard asks you if the values to be displayed are in another table (or query) or if you want to type in the values. In this case, the Travel Agent table has the values you want to display.

Microsoft Access lesson screenshot Combo10

4. In the Combo Box Wizard, make sure that the option of getting the values from another table is selected. Click Next.

The next screen asks you to select the table containing the values you want to look up.

Microsoft Access lesson screenshot Combo11

5. Choose the Travel Agents table and click Next.

Access now asks which fields you want to display in the combo box. In this example, the AgentID field is the value you want. However, having the combo box display the travel agent’s name will help ensure you select the correct agent ID value.

Microsoft Access lesson screenshot Combo12

6. Add the the AgentID field. Then, add the LastName and then the FirstName fields. Click Next after adding the fields.

You will have Access use all three fields in this combo box.

Microsoft Access lesson screenshot Combo13

7. Choose the LastName field in ascending order for the sort and then Click Next in the sort step.

You have chosen to sort the agents by last name. This would make it easier to find one agent in a large list.

Access will now display a sample combo box list. By default, the primary key is not displayed, so the agent ID field is not visible. If you wanted to lookup agents by name, this would be a good choice. However, in this case, you need to look up the Agent ID, so you will have Access display all three fields.

Microsoft Access lesson screenshot Combo14

8. Leave the Hide key column option checked.

Access will actually store the AgentID in this field but because you have left it hidden, you will see the agent’s name instead of their ID.

You can manually adjust the column widths here by dragging the column edges. You can also double-click each column’s right border, so that Access automatically adjusts it for “best fit”.

9. Adjust the column widths as desired and click Next.

The Combo Box Wizard now asks what you want to do with the key field, AgentID once a user selects it from the combo box. You will now link this combo box to the AgentID field in the Clients tables.

Microsoft Access lesson screenshot Combo15

10. In the next step, choose the Store that value in this field option and use the drop down list to choose the AgentID field. Click Next when done.

The final Combo Box Wizard screen asks you to label the combo box.

Microsoft Access lesson screenshot Combo16

11. Enter a label of AgentID is the label text and click Finish.

Aligning Controls

You should now see the combo box and label. You will now use the Align command in Access to align the labels and text boxes. To align controls you will select the controls you want to align and then choose how you want the controls aligned. In this portion of the lesson you will left align several label controls. When you choose the Left Align command, Access will align the controls to the one that is farthest to the left.

Microsoft Access lesson screenshot Combo17

1. Select the label controls for ClientID, DOB, FirstName, Address, and City.

You can select multiple controls by selecting the first control and then holding down the (Shift) key as you select the remaining label controls.

Microsoft Access lesson screenshot Combo18

2. With the labels selected, display the Form Design Tools Arrange tab and click the Alignment tool. Choose Left from the alignment options.

The labels should now all be perfectly aligned. You will now align the text boxes for these fields. As you created your form, you may have done a better job aligning the labels than the illustration. The align command can help in those situations where you do not get the controls perfectly aligned to begin with.

3. Select the City text box.

The textbox control is the white control, the one on the right.

4. Move the City text box so that its left edge is 1” from the left side of the form.

Use the horizontal ruler as a guide. You may need to move the State and Zip controls over to the right for this step.

Microsoft Access lesson screenshot Combo19

You can move a single control by dragging the upper left corner of the control.

5. Now select the text boxes for City, Address1, FirstName, DOB, and ClientID.

Use the (Shift) key to select multiple controls. You can also double-click the vertical (or horizontal) ruler to select all controls directly under (or to the right).

6. On the Form Design Tools Arrange tab, click the Align tool and choose Align Left.

Microsoft Access lesson screenshot Combo20

The text box controls should be perfectly aligned to the leftmost control, the City text box, in our case.

You are now ready to test your redesigned form.

7. Save the form. Click the View tool on the Form Design Tools Design tab, to view the form.

Microsoft Access lesson screenshot Combo21

8. Verify that the AgentID combo box works correctly, by changing the Agent for one or two clients.

9. Save the form and then close the database.

Advertisement

Next step

See the concepts demonstrated.

Continue to Watch for chapter videos and worked examples.

Go to Watch

See it explained

Watch

Choose the explanation or example that best supports your learning.

Instructional videos will be added later.

Next step

Apply what you have learned.

Use the guided questions and activities in Practice.

Go to Practice

Apply what you learned

Practice Combo Boxes and Form Enhancements

Enhance the Client Entry/Edit form and replace direct AgentID entry with a user-friendly combo box.

Guided Practice

  • Select all detail controls and move them downward.
  • Add the Client Information Form title and resize it to fit.
  • Apply the specified formatting to the title or form section.
  • Create a combo box that looks up travel agents.
  • Display meaningful names while storing AgentID.
  • Align and resize the combo box and nearby controls.
  • Save and test the form in Form View.

Challenge Yourself

  • Sort the combo-box list alphabetically by last name.
  • Hide the numeric key column while retaining it as the stored value.
  • Create a second combo box for another related field.
  • Evaluate whether each visual enhancement improves usability or merely adds decoration.

Check Your Understanding

  • Can you explain the difference between the displayed combo-box value and the stored value?
  • Can you identify why the foreign key—not the displayed name—should be saved?
  • Can you explain the purpose of a bound combo box?
  • Can you distinguish moving a control from resizing it?

Next step

Save the materials you may need later.

Open Resources for the study sheet, spreadsheets, and related learning materials.

Go to Resources

Keep learning

Resources

Study sheets, downloadable files, companion tools, and related lessons for this chapter.

For educators

Teaching this chapter?

The Instructor tab contains objectives, teaching ideas, assessments, and a printable guide.

Open Instructor Resources

LutherMaddy.com — Helping Humans Learn

Combo Boxes and Form Enhancements: Instructor Resources

Teach this lesson

Instructor Resources

Classroom-ready objectives, teaching ideas, questions, and assessment materials for this chapter.

Learning Objectives

  • Enhance a form with titles and visual formatting.
  • Select, move, resize, and align multiple controls.
  • Create a bound combo box with the wizard.
  • Display descriptive values while storing a foreign key.
  • Test the form for usability and data integrity.

Prerequisite Knowledge

  • Creating forms
  • Relationships
  • Primary and foreign keys
  • Design View

Teaching Outline

  • Open the form in Design View.
  • Move controls and create space.
  • Add and format a title.
  • Create the combo box.
  • Choose the lookup source and stored field.
  • Align controls and test the form.

Key Concepts

  • Combo boxes reduce the need to memorize key values.
  • Displayed values can differ from stored values.
  • Bound controls save data to a field.
  • Control alignment improves form usability.
  • Visual enhancements should support—not distract from—data entry.

Classroom Demonstration

  • Show AgentID as a text box and then as a combo box.
  • Hide the key column while storing its value.
  • Test several selections and inspect the saved foreign key.

Questions to Ask

  • Why should a combo box display names but store IDs?
  • What makes a form enhancement useful rather than decorative?
  • How can alignment and spacing reduce data-entry errors?

Teaching Notes

  • Verify the combo box Control Source after completing the wizard.
  • Test a new record and an existing record.
  • Use meaningful control labels.

Assessment Ideas

  • Create and format a form title.
  • Create a bound combo box for a foreign key.
  • Align and resize controls.
  • Enter and verify a record through the enhanced form.

Grading Rubric

CriterionPoints
Controls moved and title added correctly2
Combo-box source configured correctly2
Correct field value stored3
Controls aligned and formatted clearly2
Form tested successfully1
Total10

Exam and Discussion Questions

Basic

  • Explain the difference between a combo box display value and stored value.

Applied

  • Create a combo box that displays a customer name but stores CustomerID.

Conceptual

  • Explain how a combo box can improve both usability and data integrity.

Keep Exploring

Continue Learning

Explore step-by-step lessons, interactive calculators, downloadable study sheets, and practical educational resources.