Is it possible to use ADO to loop though the recordset underlying an open report. I am trying to put code in the Report’s on close event which will make a change to the records which the Report displayed.
The data set under the report was created by filters (linked to the contents of the calling form) and thus re-creating it (the dataset)with SQL seemed clumsy and open to error. Since my objective is to operate only upon those records under the report, I thought it best to simply stick with the existing dataset. Is there some ADO (or even DAO) way of setting recordset = current recordset?
Thanks, Michael. I actually tried this, but, as far as I can tell, set rs = me.recordsetclone will not work in a report. When I tried the same code in a Form it worked fine.
My code was:
Dim rs as object (also tried as ADODB.recordset)
set rs = me.recordsetclone
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.