Three Access reports use two pass-through queries and a standard SELECT query and all work singly. The one main report is kicked off with a command button that takes two dates from the form for a date range. I can see those date parameters change in the ptq after each use. One of the attached reports runs based on another ptq using the supplied "default" dates for the date range (there's nothing that resets those dates of the ptq as the attached reports are called from the main report - that is my problem or disconnect I believe), and the other on a standard select query with a WHERE clause calling the dates from the form. Those two reports supply additional but different data to the main report. I don't believe they will be subreports with linked master and child fields as the main report data and attached report data are not associated. Problem is the date range is not being passed to the one ptq for the attached report so the date never changes and only ever comes back with the "default" date range that is in its ptq. Here are the two ptqs:
exec dbo.uspJobsCompletedThruPress '2019-10-07 05:30:00','2019-10-12 14:29:59'
exec dbo.uspJobsCompletedThruPress_SubReport '2019-10-14 05:30:00','2019-10-19 14:29:59'
The subreport sp returns a single record as expected.
I have tried using a SELECT query like the other attached report but that won't work because the sp's scalar returns no dates, it only takes the date parameters to build the scalar record.
How can I get the date parameters to pass to the attached report's ptq from the main called report?
The other issue is, these attached reports are located in the Report Footer section so their data will print immediately after the main report's list of records. However, since I am using two columns, the attached report's data always prints on the next page not at the bottom of the first column (usually) or the second column (given enough records), even when there is sufficient room at the end of the listed records. How can I make that attached report directly follow the first list? Should this be another question?