I have an access report that has a subreport whose Recordsource property has to be modified during runtime. This is not a problem in acViewPreview mode, but when I go to actually print the report (which will re-run most if not all the code), I get the following error:
Error #: 2451 The report name ‘tblClaimsCosts subreport’ you entered is misspelled or refers to a report that isn’t open or doesn’t exist.
I have verified that the table is not misspelled. I tried to include some code to open the subreport in order to edit the properties, but that produced another error altogether. I think I have further learned that you cannot “Open” a report while “printing” it. Does anyone know how I should go about modifying properties of a report that is in the process of being printed?