combo boxes

L

Lauren B.

How do I create combo boxes so that if one value is selected in the first
box, certain values appear in the second one. For example, my first box
will contain states. When a particular state is selected by the user, all
counties for that state will appear in the next combo box. This will occur
for all states.

Thank you for your help!

*Lauren
 
L

Lynn Trapp

Lauren,
Assuming that your first combobox is called cboStates, then set the
rowsource for your county combobox to the following:

Select County
From Counties
Where State = Me.cboStates

Then, in the AfterUpdate event of cboStates put the following statement.

Me.cboCounties.Requery
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

synchronized Combo Boxes in subforms 2
combo box question 1
combo boxes 2
form question 2
Access 2007. Combo box list template 1
Combo Box Dependent on previous 7
Combo box problem 7
synchronizing Combo boxes 1

Top