I made a form, where a user can select the value of 3 fields from a combo boxes. The values of these fields are passed to a report as parameters. The report parses out the parameters and uses them in the record source query.
So far so good. My problem is, the report has a sub report, which needs to populate based on values that were passed to this parent report.
So on the report_load event of the sub report, I set variables equal to the value of the fields on the parent report, redefine the record source, and do a Me.requery. But access throws an error on the requery. "the expression you entered refers to an object that is closed or doesn't exist"
I've verified that the values are actually being passed to the sub report load routine. And the subform will populate with data if I just explicitly set the recordsource.
So far so good. My problem is, the report has a sub report, which needs to populate based on values that were passed to this parent report.
So on the report_load event of the sub report, I set variables equal to the value of the fields on the parent report, redefine the record source, and do a Me.requery. But access throws an error on the requery. "the expression you entered refers to an object that is closed or doesn't exist"
I've verified that the values are actually being passed to the sub report load routine. And the subform will populate with data if I just explicitly set the recordsource.