In Microsoft Access 2007 is it possible to manualy generate a RecordSet object and pass the object to a Microsoft Access Report and Sub Report?
I would like to have a Form, on which the user clicks a button and the OnClick event dynamically creates two RecordSets, opens a Report and attaches the first RecordSet to the Report and the second RecordSet to a SubReport on that Report. And then generates/shows the report.
Thanks.
You can set the Record Source of a form or a report to an SQL string. You can also filter a form or report based on an exiting query or table using the WHERE argument of OpenForm or OpenReport. Finally, you can set the recordset of a form to an existing Recordset, but that is slightly more complicated that just setting the Record Source to sql.
Disconnected recordset