I have an interesting problem that I haven't been able to find an answer to.
Basically, I would like to base a report's recordsource not on a table or query buton a VBA recordset. So the data that the report is based on would come from a recordset.
I have created an ADP in Access 2000 using SQL Server as the backend. The ADP is disconnected from the server per a recommendation in Microsoft Access Developer's Guide to SQL Server. That means that when I retrieve data I use code to connect to the server, load or save the data then disconnect. It works, and it's quick and very scalable.
Ok, the problem is that with reports, I'm not sure how to load the data in except via a recordset, which is filled from an SQL stored procedure. There are no tables or queries in the application...all that is on SQL Server and I connect via code to get them.
Note that because ADPs don't use Jet, I can't simply create a temp table then base the report on that. Thus my question regarding report recordsource from recordsets.
Thanks for any help with this. It's pretty much stumped me.
Webber
Basically, I would like to base a report's recordsource not on a table or query buton a VBA recordset. So the data that the report is based on would come from a recordset.
I have created an ADP in Access 2000 using SQL Server as the backend. The ADP is disconnected from the server per a recommendation in Microsoft Access Developer's Guide to SQL Server. That means that when I retrieve data I use code to connect to the server, load or save the data then disconnect. It works, and it's quick and very scalable.
Ok, the problem is that with reports, I'm not sure how to load the data in except via a recordset, which is filled from an SQL stored procedure. There are no tables or queries in the application...all that is on SQL Server and I connect via code to get them.
Note that because ADPs don't use Jet, I can't simply create a temp table then base the report on that. Thus my question regarding report recordsource from recordsets.
Thanks for any help with this. It's pretty much stumped me.
Webber