<%dim crumb crumb="Dependent Combo Box Download" Crumb2="Dependent Dropdown Lists" crumb1="Dependent List Box/Dropdown List/Combo Boxes" %> Dependent Combo Box
Home  Fees/Services  Access 2010 Template  Access Tutorial  Access Download  Articles  Search  Contact  Privacy  Links

<%if len(crumb2)>2 then response.write crumb2 else response.write ">

Open Email Using SendObject Access Download

User Inactivity Logout VBA Code

Disable Shift Key Demo

Send Email Microsoft Access Tutorial Download (Advanced)

Sequential Counter in Query

Multi Select List Box Query Parameters

Row Level Data Security

Programming MS Access Security Alternative

Single User Inventory Calculations Download

How To Perform Multi-User Inventory Calculations

Make Dependent Combo Box Code MS Access Tutorial

Union Query Example (Simple)

Union Query (Advanced) Access Tutorial

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Access Bar Chart / Bar Graph

Programming Crosstab Query Example

TransferText & OutputTo Microsoft Access

DoCmd.OpenForm & OpenArgs VBA Example

Running Sum Query Method

Choose Command Dynamic SQL Order By

Access Conditional Format

Access Report Banding

Popup Form Control Method

<% gnum="09466400141" %>

Dependent Combo Box

The Access dependent combo box is one of the first techniques a new programmer must master.  Hopefully the downloadable example will save you a lot of time figuring out your first dependent dropdown list code. This example demonstrates the tables, queries and form programming needed to setup a combo box dropdown list dependent on the values in another combo box.

In this demo we have a list of student advisors and a list of students.  When you select an advisor the dependent combo box (students) is limited to those students who have been assigned the selected advisor.

Here is a snapshot of the code contained in the database:

Main combo after update event:

Private Sub Advisor_Combo_AfterUpdate()
End Sub Record source for the dependent combo:

SELECT M_Students.Student FROM M_Students WHERE (((M_Students.Advisor_ID)=[Forms]![F_Combo]![Advisor_Combo]))

You will also need an on current event which also requeries the dependent combo box.  This is needed to coordinate the dependency when going from record to record in data review mode.

Download our Access Dependent Combo Box programming example.

Access Download: Dependent Combo Box

Microsoft Office:
MS Access 2003
Access 2007
Access 2010
Access 2013
Access 2016
<% dim rnum Randomize rnum = Int(Rnd * 10) + 1 response.write " Updated On " & now-rnum %>

Contact Information

<% Response.write "Copyright 2000-" & year(now) & " Blue Claw Database Design" %>

MS Access 2013, Access 2010 & Microsoft Office 2007