A Combo Box in Microsoft Access is a form control that displays a drop-down list of values. Users can select an item from the list instead of typing it manually. Combo Boxes are useful for selecting courses, cities, categories, payment modes, and other predefined values.
A Combo Box combines a text box with a drop-down list. Depending on its properties, users can select an existing value or enter a value manually.
Follow these steps to create a Combo Box in MS Access:
A Combo Box can obtain its list values from different sources. The Row Source Type property determines how Access interprets the Row Source.
| Row Source Type | Purpose | Example |
|---|---|---|
| Table/Query | Gets values from a table or query. | Course names from Courses table |
| Value List | Uses a manually entered list of values. | Cash; UPI; Bank Transfer |
| Field List | Displays fields available in a record source. | StudentID; StudentName; Course |
Choose the source that best suits the data you want users to select.
A Value List is useful when the list contains a small number of fixed choices that do not need to come from another table.
Suppose users can choose from these payment methods:
Cash;UPI;Bank Transfer
The Combo Box will display these three choices. Configure its Control Source if the selected value needs to be saved to a field.
When list values are stored in another table, use Table/Query as the Row Source Type. This makes the list easier to maintain when records are added or changed.
| CourseID | CourseName |
|---|---|
| 1 | ADCA |
| 2 | Tally Prime |
| 3 | Web Development |
| 4 | Python Programming |
SELECT CourseID, CourseName
FROM Courses
ORDER BY CourseName;
0cm;5cm.| Property | Purpose |
|---|---|
| Name | Identifies the Combo Box control. |
| Control Source | Specifies the field or expression connected to the control. |
| Row Source Type | Determines whether the list comes from a table/query, value list, or field list. |
| Row Source | Specifies the table, query, SQL statement, or list values. |
| Bound Column | Specifies which column provides the value stored by the control. |
| Column Count | Sets how many columns the list contains. |
| Column Widths | Controls the displayed width of each column. |
| Limit To List | Restricts entries to values in the list when set to Yes. |
| Default Value | Specifies an initial value for a new record. |
| Auto Expand | Helps match typed characters to list entries. |
Bound Column specifies which column in a Combo Box supplies the value returned or stored by the control. The first column is column 1, not column 0.
| CourseID | CourseName |
|---|---|
| 1 | ADCA |
| 2 | Tally Prime |
| 3 | Web Development |
If the properties are:
0cm;5cmThe user sees the course name, but the control returns the CourseID. This is useful when storing relationships between tables.
The Limit To List property controls whether users can enter values that are not in the Combo Box list.
| Text Box | Combo Box |
|---|---|
| Usually allows direct typing. | Displays a list of choices and may also allow typing. |
| Useful for names, addresses, and comments. | Useful for courses, categories, and predefined values. |
| Does not automatically provide a list of options. | Can obtain options from a table, query, or value list. |
| May allow many different text values. | Can restrict selection to values in its list. |
| Problem | Possible Solution |
|---|---|
| Combo Box shows no values. | Check Row Source Type, Row Source, and whether the source contains records. |
| Wrong value is saved. | Check Bound Column and the data type of the Control Source field. |
| Course ID appears instead of the course name. | Check Column Count and Column Widths. |
| Users can enter unwanted values. | Consider setting Limit To List to Yes. |
| Combo Box Wizard does not appear. | Enable Use Control Wizards on the Design tab. |
| Selected value is not saved to a field. | Check Control Source and the form's data source. |
Create two tables in MS Access:
Students and Courses.
frmStudentAdmission.1. What is the main purpose of a Combo Box?
2. Which property specifies the source of list values?
3. Which property determines the column whose value the Combo Box returns?