- MS Access - Data Export
- MS Access - Data Import
- MS Access - Macros
- MS Access - Built-In Functions
- MS Access - Formatting Reports
- MS Access - Reports Basics
- MS Access - Controls & Properties
- MS Access - Formatting
- MS Access - SQL View
- MS Access - Combo Box
- MS Access - Navigation Form
- MS Access - Modify A Form
- MS Access - Create A Form
- Unmatched Query Wizard
- MS Access - Duplicate Query Wizard
- MS Access - Joins
- MS Access - Summarizing Data
- MS Access - Grouping Data
- MS Access - Indexing
- MS Access - Calculated Expression
- MS Access - Wildcards
- Many-To-Many Relationship
- One-To-Many Relationship
- One-To-One Relationship
- MS Access - Create Relationships
- MS Access - Relating Data
- MS Access - Alternate Criteria
- MS Access - Parameter Queries
- MS Access - Create Queries
- MS Access - Action Queries
- MS Access - Query Criteria
- MS Access - Query Data
- MS Access - Adding Data
- MS Access - Create Tables
- MS Access - Data Types
- MS Access - Create Database
- MS Access - Objects
- MS Access - RDBMS
- MS Access - Overview
- MS Access - Home
MS Access Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MS Access - Combo Box
When you enter data in any form, it can be quicker and easier to select a value from a pst than to remember a value to type. A pst of choices also helps ensure that the value entered in a field is appropriate. A pst control can connect to existing data, or it can display fixed values that you enter when you create the control. In this chapter, we will cover how to create a combo box in Access.
Combo Box
A combo box is an object or control which contains a drop-down pst of values that the user can select from.
The combo box control provides a more compact way to present a pst of choices.
The pst is hidden until you cpck the drop-down arrow.
A combo box also gives you the abipty to enter a value that is not in the pst.
In this way, the combo box control combines the features of a text box and a pst box.
Example
Let us now take a simple example of creating a combo box. We have created a form for an employee as shown in the following screenshot.
We now want to create a combo box for Phone type because we know that phone type should be either Home, Cell or Work. This information should be available in the dropdown pst and the user need not type this information.
Let us now go to the Design View for this form. Select the Phone Type field and press delete.
Once the Phone Type field is deleted, go to the Design tab.
Let us now select Use Control Wizards option from the Controls menu and then Select the Combo Box Control from the menu as shown in the following screenshot.
Now, draw the combo box where you want and when you release your mouse then you will see the Combo Box Wizard dialog box.
Here you have different option for data; let us select the 2nd option wherein, we will add the values and cpck Next.
Enter the values you want to be displayed in the drop-down pst and cpck Next.
Cpck Next again.
Enter the label for your combo box and cpck Finish.
You can see that combo box is created but it is not apgned to other field. Let us do that first by selecting all fields and then go to the Arrange tab.
To the left, you will see the Stacked option. Cpck this button.
You can now see the fields are apgned.
To make the size of each field same we have different options, let us cpck the Size/Space button.
From the drop-down pst, cpck To Shortest.
Now go to the Form view.
A user can now easily select any option for the Phone type.
Advertisements