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

Retrieving colum values from record by index.

Status
Not open for further replies.

rabisco

MIS
Jan 4, 2007
21
I think I have just about tied myself up in knots on this one.
Here goes

for each c in arrCols
Response.Write ("Columns to retrieve from spreadsheet")
Response.Write("<br>")
Response.Write c
Response.Write("<br>")
'Response.Write rs.fields.item(c).value
On Error Resume Next
Next

The code gets an index from a couple of arrays, I now want use the index to retrieve the value of a column(wih the same index) from a recordset.
I'll appreciate your help as usual.
 
By the way, I am able to get the coumn name with

Response.Write rs.fields.item(c).name,

but I get an error with

Response.Write rs.fields.item(c).value
 
but I get an error
Any chance you could post the error message ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top