M
Max Moor
Hi All,
I have a report with a subreport in its detail section. I pass the
strings for the filter for the main report and the subreport to the Open
event code of the main report. I wanted to set the filter of the subreport
from there with code like:
Me!rsub_MyRsub.Report.Filter = varFilter
I get error 2455 (invalid reference. I assume this is because the
subreport isn't loaded yet when the main report's Open code runs? True?
So, how can I set this from the main form? I hate to put it in the
detail format event, because it would run for every record, and only needs
to one time.
Thoughts?
- Max
I have a report with a subreport in its detail section. I pass the
strings for the filter for the main report and the subreport to the Open
event code of the main report. I wanted to set the filter of the subreport
from there with code like:
Me!rsub_MyRsub.Report.Filter = varFilter
I get error 2455 (invalid reference. I assume this is because the
subreport isn't loaded yet when the main report's Open code runs? True?
So, how can I set this from the main form? I hate to put it in the
detail format event, because it would run for every record, and only needs
to one time.
Thoughts?
- Max