I lose hair over this.
I have a company organization database.
The form has a dropdown from which one can select a branch (based on table “Branches”, located in the main Form). After click on a button it shows all employees from that branch in a grid (based on table “Employees”, located in a Subform). This is done with a “Filter” table containing the BranchID from the dropdown. Works. Good.
Now some branches have departments. No branch has the same department. I have a table “Departments”. I want a dropdown that shows me the departments only for the selected branch when I click the aforementioned button. Then I want to select the department and its ID gets stored per employee (foreign key field “DepartmentID” in the employees table). Thus it is also located in the Subform.
I can’t get this right. The dropdown always shows me ALL departments, but not filtered by branches.
I have a simple .odb to explain, but cannot upload it here. Am too new (not enough points). :-/
The dropdown likely has to filter by the initial listbox (Branches), but cannot, since it is located in the Subform employees.
How can this be solved?
Hope you can help.