B
Bill Sturdevant
I have a report with a collection of Sub Reports. The Report does not have
an underlying query. The Sub Reports each have their own queries that pull
records. So there is no opportunity to do a Master-Child Link.
I have a form that allows me to pick options that I want to use to filter
each of the sub reports appropriately. As the options are picked, I assemble
appropriate filters in fields on the form.
If I physically copy the filters and paste them into the Filter on the Sub
Reports in design view and then open the report, everything works.
But, if I try to progarmmatically set the Filter of the subreports,
depending upon where I try to do it from , I get errors.
When I try to set the filter of the sub report in the Report_Open routine of
the Sub Report, I get the error "The setting you entered isn't valid for this
property".
I thought you were supposed to be able to set the Filter in this way. I am
probably missing something obvious.
How can I set the filter of the Sub Report programmatically.
an underlying query. The Sub Reports each have their own queries that pull
records. So there is no opportunity to do a Master-Child Link.
I have a form that allows me to pick options that I want to use to filter
each of the sub reports appropriately. As the options are picked, I assemble
appropriate filters in fields on the form.
If I physically copy the filters and paste them into the Filter on the Sub
Reports in design view and then open the report, everything works.
But, if I try to progarmmatically set the Filter of the subreports,
depending upon where I try to do it from , I get errors.
When I try to set the filter of the sub report in the Report_Open routine of
the Sub Report, I get the error "The setting you entered isn't valid for this
property".
I thought you were supposed to be able to set the Filter in this way. I am
probably missing something obvious.
How can I set the filter of the Sub Report programmatically.