|
|
Question : EXCEL VBA - ADO for multiple datasets
|
|
Hi
using ADO, I'm executing a stored procedure that should return 2 datasets in a recordset object
PROBLEM: when i "dump" the data into a spreadsheet i only see dataset #1.
Is there a way to extract each dataset from the recordset?
|
Answer : EXCEL VBA - ADO for multiple datasets
|
|
If rs is the recordset object you retrieve then use the following to advance to the next recordset after you've processed the first one:
Set rs = rs.NextRecordset
|
|
|
|