I would like to fill a combo box list based on the value in the combo box above it on the same form. The first combo box lists staff departments. In the second combo box I would like to list staff names based on the department selected in the first combo box. The following query is from the row source in the second combo box. It only lists staff names from one department and does not change when I choose a different department.
SELECT [tblStaff].[LNAME] & ", " & [tblStaff].[FNAME] AS staff, [tblStaff].[DISCIPLINE] FROM tblStaff WHERE ((([tblStaff].[DISCIPLINE])=IIf(Trim([Forms]![frmReviews]![cmbOTHERName])="Recreational Therapy","RT",IIf(Trim([Forms]![frmReviews]![cmbOTHERName])="Occupational Therapy","OT","Physical Therapy")))) ORDER BY [tblStaff].[LNAME] & ", " & [tblStaff].[FNAME];
SELECT [tblStaff].[LNAME] & ", " & [tblStaff].[FNAME] AS staff, [tblStaff].[DISCIPLINE] FROM tblStaff WHERE ((([tblStaff].[DISCIPLINE])=IIf(Trim([Forms]![frmReviews]![cmbOTHERName])="Recreational Therapy","RT",IIf(Trim([Forms]![frmReviews]![cmbOTHERName])="Occupational Therapy","OT","Physical Therapy")))) ORDER BY [tblStaff].[LNAME] & ", " & [tblStaff].[FNAME];