• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 13
  • Last Modified:

Populate a 2nd list box after selecting a record in the 1st listbox

How can I populate a 2nd listbox on a form (multi select = Simple), with records  after selecting a record in the 1st listbox.  The 1st listbox shows categories.  When I select one of them I want the related sub-categories to display in the 2nd listbox.  How can I do this?
1 Solution
This is called cascading combos and there are lots of variations on how to do it.  My preference is for the dependent combo to use a query as the rowSource with a WHERE clause that references the parent combo:

Where MyField = Forms!yourForm!ParentCombo

Then in the AfterUpdate event of ParentCombo,, you requery the dependent combo


So, it's one line of code plus a where clause in your RowSource query.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now