filtering data in a combo box based on a selection in another comb

G

Guest

I am trying to create a database to catalog my software collection. What I
would like to do is select a catagory from a combo box and have the combo box
next to it populated with the sub categories related to the parent category.
ie. the user would select the category "business and finance" and the combo
box next to it would display the relevant sub-categories (financial,
calculators, etc.) and then when you selected one of those sub-categories it
would populate a third combo box with a final level of categories.
Suggestions?

Thanks in advance...
SteveMc
 
D

Dan Artuso

Hi,
Use the value in your first combo as criteria in the query that populates
your second combo.
So you'd have something like this as criteria in the query:
Forms!yourForm!yourFirstCombo

Then, in the AfterUpdate event of the first combo (it's always
better when you supply the names of your controls!) requery the second:

Me.yourSecondCombo.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

Top