MS Access - Creating a report based on a pass-through query that requires a parameter
1
vote
1
answer
2016
views
I am attempting to make a report in Access that uses parameters as well as a pass-through query.
I'm open to using a temporary table but the guides I can find using temporary tables all use an Insert query which doesn't work with my pass-through query.
I see a lot of mention of creating a recordset from the pass-though query and then copying the recordset to a temporary table but have not had luck location instructions on how to do that.
Some background. I have a PostgreSQL server that is aggregating multiple databases via a foreign data wrapper. Across those databases I have multiple table names that a reused.
I can do a normal pass-through query using the front end query properties but this doesn't handle parameters for the pass-through query.
I can build a form using ADO objects by setting the record set for the form to equal a record set created from a pass-through query. (
Set Me.Recordset = MyRecordset
) This allows me to create the query string dynamically so I can use parameters! One step closer but not a report.
Reports do not support setting themselves to a record set the way forms do so I'm back to the drawing board.
Any suggestion on how to accomplish my goal? Should I give up and have Postgres store the results in a table, link that table, and call it a day?
Asked by BGCDC
(167 rep)
Sep 24, 2018, 08:20 PM
Last activity: Apr 18, 2025, 08:02 AM
Last activity: Apr 18, 2025, 08:02 AM