hellohello1
Technical User
I have a table with 2 fields that looks like this:
ReportID CriteriaCode
1 ...........Cost-R3
1 ...........Cost-Y6
2 ...........Sched-Y7
2 ...........Sched-R3
2 ...........Risk-R5
etc.
I have a report based on a query. The query contains a field called CriteriaCode.
I have a combo box on a Form that shows all the ReportIDs. If the user selects a ReportID and clicks on a command button, can I use the table above to build a Where statement to open the report?
So if a user chooses ReportID 1 on the Form, the report would open and the Where statement would be: Where CriteriaCode=Cost-R3 or Cost-Y6.
How can I do this?
Thanks,
ReportID CriteriaCode
1 ...........Cost-R3
1 ...........Cost-Y6
2 ...........Sched-Y7
2 ...........Sched-R3
2 ...........Risk-R5
etc.
I have a report based on a query. The query contains a field called CriteriaCode.
I have a combo box on a Form that shows all the ReportIDs. If the user selects a ReportID and clicks on a command button, can I use the table above to build a Where statement to open the report?
So if a user chooses ReportID 1 on the Form, the report would open and the Where statement would be: Where CriteriaCode=Cost-R3 or Cost-Y6.
How can I do this?
Thanks,