cliffhanger9
MIS
Hi all,
I have an ADO recordset that is populated from a stored procedure that uses several functions to concatenate one of the fields of the recordset so as such there is not a direct field name to reference in the sort (i.e. <%
rs.Sort="CompanyName,ContactName"
%> )
I know that there is no field name because I applied the following to the recordset:
...and it returned the following:
(there are only two fields in this recordset)
I am able to write the data that I need because I know the field's index within the recordset (1), so I print it via:
My question is, is there a way to sort using this index as well? or is there another way to sort a recordset on a specific field without a field name?
cheers and happy holidays
I have an ADO recordset that is populated from a stored procedure that uses several functions to concatenate one of the fields of the recordset so as such there is not a direct field name to reference in the sort (i.e. <%
rs.Sort="CompanyName,ContactName"
%> )
I know that there is no field name because I applied the following to the recordset:
Code:
Response.Write("<u>Fields in rs:</u> <br />")
For i = 0 To rs.Fields.Count - 1
Response.Write( "Field " & i & " = " & rs.Fields(i).Name & "<br />")
Next
Fields in rs:
Field 0 = person_id
Field 1 =
(there are only two fields in this recordset)
I am able to write the data that I need because I know the field's index within the recordset (1), so I print it via:
Code:
<%= rs.Fields.Item(1) %>
cheers and happy holidays