I want to report on data coming from a monster MySQL statement with user input data. Within my application, I use ADODB recordsets throughout my application, and I was wondering if I can do the same for generating reports. If so, how do I do it?
I don't think you can base a report on a recordset like you can a form. Have you considered taking the SQL of your recordset and using it in a pass-through query? You could set the p-t as the record source of your report.
pwise, will try that after I've put out my administration fires.
Another thought I had was to dynamically create a SQL command, using data input from a form. The query would create either a temptable or "create or replace" view based on the data fed to it on the server, then the report would use a select * from this newly created view/temptable
The query as it stands, based off all the data I have takes 8 minutes or so to finish. Restricting just the date range drops it down to a few seconds.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.