I am trying to pass a combobox parameter from a form to a query, which then runs the report. Generally I have not had a problem with this, until now.
Form:
The combobox, called [cboOverdue], has a Row Source Type of Value List, with "No" and "Yes" as the 2 items in the Row Source. I have set the default value is "No".
Basically, the parameter is "Only include overdue reviews?". If the user selects "Yes", then I only want the overdue performance reviews; if the user selects "No", I want the report to show ALL reviews.
When I select "Yes" in the [cboOverdue] combobox, the report correctly shows only the records with overdue reviews. However, when I select "No", I get no data on the report.
Query:
The data for the field [ReviewOverdue] is either " " or "Yes".
Tried this criteria for the field:
IIF([Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue] = "No", "*", [Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue])
I have also tried:
IIF([Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue] = "Yes", [Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue])
I'm not sure what else to try???
Form:
The combobox, called [cboOverdue], has a Row Source Type of Value List, with "No" and "Yes" as the 2 items in the Row Source. I have set the default value is "No".
Basically, the parameter is "Only include overdue reviews?". If the user selects "Yes", then I only want the overdue performance reviews; if the user selects "No", I want the report to show ALL reviews.
When I select "Yes" in the [cboOverdue] combobox, the report correctly shows only the records with overdue reviews. However, when I select "No", I get no data on the report.
Query:
The data for the field [ReviewOverdue] is either " " or "Yes".
Tried this criteria for the field:
IIF([Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue] = "No", "*", [Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue])
I have also tried:
IIF([Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue] = "Yes", [Forms]![frmReports]![frmReportsSUB].[Form]![cboOverdue])
I'm not sure what else to try???