Hi Access Forums
Sorry to bother you with this seemingly easy question. I have searched far and wide for the answer, including here but have had no joy.
Goal: I have a form with 2 date boxes and 2 combo boxes (comboStaff and comboDept). All I want to do is query the main table (tblMain) using the dates and comboboxes as criteria but want the combo boxes to use a separate table to provide their values (tblStaff).
I have the dates working fine so thats not an issue. The mechanism for comboDept will be the same as comboStaff so i'll just work with comboStaff here.
The comboStaff will not work using the tblStaff.Staff as the source of the data. It will work if it is set to read from tblMain.StaffMember and filter the records fine.
So basically I want to choose the dates, choose either a staff member (or none) OR a dept (or none) so that everything between the dates that meets those 0 or 1 or 2 criteria is returned.
The current code the the query is Like [Forms]![Date_Filter]![comboStaff] & "*" on tblMain.StaffMember.
Hope that makes sence??
Cheers
Kranky