Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return recordset into array

Status
Not open for further replies.

rborel

MIS
Dec 3, 2002
29
US
Is there any way to return a recorset into an array instead of doing the following?

rsTT.let_Source(strSQLTT2)
rsTT.Open()
While Not rsTT.EOF
rsTTout = rsTT.Fields(0).Value
strTT.Add(rsTTout)
rsTT.MoveNext()
End While

I am looking for a faster way to bring the values into the strTT variable. The current code is extrememly slow.

What I am doing is creating a list of database entries and ouputting them to an Excell sheet for users.
 
Well, if you use ADO.Net instead of ADO, the concept involves returning data to a collection of data rows. You could easily do that and iterate through the collection for your Excel file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top