CopyFromRecordset and ADO.NextRecord
OK Team,
I need to retrieve five queries from (Stored Procedures) SQLserver and paste them onto five different worksheets. I thought I'd try to be clever and get all the data in one hit using the multiple recordset feature of ADO, and then loop through them, pasting each one to a new sheet using CopyFromRecordset.
The problem is that while the CopyFromRecordset for first recordset works fine, all subsequent sets complain about being closed. Is CopyFromRecordset meant to close recordsets? I could understand it setting EOF to true, but that should only affect the current set anyway.
Cheers,
Chris
There are two secrets to success in this world:
1. Never tell everything you know
__________________
There are two secrets to success in this world:
1. Never tell everything you know
|