I am trying to build a filtered drop down box. Here is the example of my data:
List 1 contains department number, department name
List 2 contains department number, charge code
On my form, I have the following:
a. primary department, which is a drop down lookup against list 1, displaying the department name, and including the department number. The user can select 1 entry from this.
b. secondary departments, which is a scrollable multi-select control against list 1, displaying the department name, and including the department number. The user can select 0-many entries from this.
c. charge code drop down lookup against list 2. The user can only select one from this.
What I want to do is filter list 2 using a list of department numbers provided by controls a and b.
I don't know how to set up this filter.
I also don't know how to handle the form so that if a user selects department 1, 44, and 57, how do I filter so that I get charge codes from only those 3 values, and not get departments 10, 11, 12, ... as well?