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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load recordset values into array

Status
Not open for further replies.

mihalych

Programmer
Jul 24, 2003
27
US
Can somebody help me. How can I load recordset values( product id's) into array. I want to pass array (id values) to another page.
 
sql = "select * from wherever"
set rs = dbobj.Execute (sql)
arrRS = rs.GetRows()

For i = 0 to UBound(arrRS,2)
Response.write &quot;<BR>&quot;&arrRS(1,i)&&quot;,&quot;&arrRS(2,i)
next

..etc
 
thanks for that
how can I specify in rs.GetRows() to load only &quot;ProductCode&quot; field?
 
Store it to session.
first page

Session(&quot;storedArray&quot;)=myArray

other pages

myArray=Session(&quot;storedArray&quot;)

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top