How to Create a Correlated Access Combo Box for VAR_ID and Size
Question details
The user wants to set up a cascading (correlated) combo box in Microsoft Access to display Size values tied to a specific VAR_ID and automatically include newly added values.
- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Building a database form with dependent dropdown lists for VAR_ID and Size that allow dynamic data entry.
- Observed behavior
- Needs a method to properly filter the Size combo box based on the selected VAR_ID and use the Not In List event to add new sizes seamlessly.
Ensure your Microsoft Access tables are properly backed up before modifying table structures and relationships, and verify that you have Developer permissions to edit form properties and VBA code.
Normalize Tables and Configure the Correlated Combo Box
Proper database normalization is required before creating a cascading combo box. Set up relationships between VAR_ID and Sizes to filter results accurately.
To make correlated combo boxes function smoothly, your data model must be properly structured. You need to separate your data into dedicated tables and use a junction table to handle the relationship.
Design three tables: a 'VAR_ID' table, a 'Sizes' table, and a junction table named 'VAR_ID_Sizes'. Set a composite key consisting of both VAR_ID and Size in the junction table.
Open your form in Design View. Add a combo box for VAR_ID and bind its Row Source to the VAR_ID table.
Add a second combo box for Size and bind its Row Source to the VAR_ID_Sizes table.
Modify the Row Source query of the Size combo box to filter by the selected value in the VAR_ID combo box (e.g., add WHERE VAR_ID = [Forms]![YourFormName]![cboVAR_ID]).
Implement VBA Events for Requerying and New Entries
Use VBA macros in Microsoft Access to refresh the dependent combo box dynamically and allow users to add new sizes on the fly.
Looking for a Reliable and Free Office Alternative?
While Microsoft Access handles complex relational databases, for your everyday documentation, spreadsheets, and presentation needs, WPS Office offers a lightweight, completely free alternative to Microsoft Office. It provides an intuitive interface and flawless format compatibility without the heavy subscription fees.
- 1. Visit the Official Site: Go to the official WPS Office website to find the latest version.
- 2. Download the Installer: Click the Free Download button suitable for your operating system.
- 3. Install and Launch: Run the installer, open the application, and enjoy seamless document management.

Frequently Asked Questions
Why is my dependent combo box blank when I select a VAR_ID?
This usually happens if the Row Source query of the second combo box isn't referencing the first combo box correctly via the Forms!FormName!ControlName syntax, or if the Requery command is missing in the After Update event of the primary combo box.
What does the 'Not In List' event do in Microsoft Access?
The 'Not In List' event triggers when a user types a value into a combo box that is not currently part of the underlying list. It allows you to run VBA code to automatically add that new item to your source tables on the fly.
Can I use cascading combo boxes without writing VBA?
While you can use simple Access Macros to requery the dependent combo box, handling the 'Not In List' event to dynamically insert new records into junction tables typically requires writing specific SQL and VBA code.
How do I handle composite keys in an Access database?
A composite key involves selecting multiple fields (like VAR_ID and Size) in the Table Design view, then clicking the Primary Key button. This ensures that the specific combination of both values remains unique in your junction table.




