atmospherik
Technical User
I am trying to sort a recordset and i am having problems.
I have tried the follwing but output is not sorted...
Dim rsManufacturer
Set rsManufacturer = Server.CreateObject("ADODB.Recordset"
rsManufacturer.Open "SELECT * FROM tblManufacturers", strConn
rsManufacturer.CursorLocation = 3
<% rsManufacturer.Sort "Manufacturer" %>
<%While (NOT rsManufacturer.EOF)%>
'output record here
<%rsManufacturer.MoveNext()
Have also tried SQL "..ORDER BY Manufacturer" (manufacturer is name of field I want to sort by) but this doesn't work either)
Would appreciate any help here.
Thanks in advance,
Paul.
I have tried the follwing but output is not sorted...
Dim rsManufacturer
Set rsManufacturer = Server.CreateObject("ADODB.Recordset"
rsManufacturer.Open "SELECT * FROM tblManufacturers", strConn
rsManufacturer.CursorLocation = 3
<% rsManufacturer.Sort "Manufacturer" %>
<%While (NOT rsManufacturer.EOF)%>
'output record here
<%rsManufacturer.MoveNext()
Have also tried SQL "..ORDER BY Manufacturer" (manufacturer is name of field I want to sort by) but this doesn't work either)
Would appreciate any help here.
Thanks in advance,
Paul.