Hi everyone,
So I'm trying to follow this report dialogue sample (courtesy of Microsoft Community). On the form "frmMultiFieldDlg_1" is basically exactly what I need. This form filters reports based on two combo boxes and a date range criteria. I made a form similar with a date range and two combo boxes. In the sample, the combo boxes display exactly what's exactly in the table it's referring to. The combo box uses this code:
I tried doing the same thing, which is as follows:
I didn't include an ORDER BY because this drop down is a simple yes/no selection. While this does give me the yes/no options, they're all repeating based on the record selection (e.g. Yes, yes, yes yes, no, yes, no, etc). How do I get this combo box to simple show yes/no and filter based on whichever is chosen? Any advice is much appreciated!
So I'm trying to follow this report dialogue sample (courtesy of Microsoft Community). On the form "frmMultiFieldDlg_1" is basically exactly what I need. This form filters reports based on two combo boxes and a date range criteria. I made a form similar with a date range and two combo boxes. In the sample, the combo boxes display exactly what's exactly in the table it's referring to. The combo box uses this code:
Code:
SELECT Departments.Department FROM Departments ORDER BY Departments.Department;
I tried doing the same thing, which is as follows:
Code:
SELECT tblAgency.WSIBEmployeeDeclaration FROM tblAgency;
I didn't include an ORDER BY because this drop down is a simple yes/no selection. While this does give me the yes/no options, they're all repeating based on the record selection (e.g. Yes, yes, yes yes, no, yes, no, etc). How do I get this combo box to simple show yes/no and filter based on whichever is chosen? Any advice is much appreciated!