Hello Helen, thank you for your prompt response.
The problem I have is not creating a recordset, I can do that without much problem using ADO. The problem exist in seting this recordset or it's record source as that of the Report.
Accdb's do not allow you to change a recordset, you have to be creating an ADP, so something like:
report.Recordset = myRst
does not work, and to change the record source you need to have the SQL string, which I dont have for the ADO recordset as it's been created by executing a stored procedure.
Hence the current work around, to create pass-through query on an ODBC connection, then I can use:
SELECT * qryPassThrough WHERE parameter
as the record source.
Main Topics
Browse All Topics





by: Helen_FeddemaPosted on 2009-09-25 at 10:52:26ID: 25425375
I am not sure whether this would be helpful, since I am using DAO rather than ADO, but here is the technique I use to create a filtered recordset on-the-fly, and then you can use either the strSQL variable, or the temp query created by the code, as the record source for a form or report, or you can create a recordset from the SQL for use elsewhere in code:
Select allOpen in new window