newmediaguy
Programmer
Hi guys
I am having trouble with getting an order by clause working.... this may be more ASP related but thought I ask you first.
It works in the query analyzer but not when called in the ASP page.
ID is an identity field but that shouldnt make a difference....i wouldnt have thought.
Any thoughts appreciated
Glen
Conception | Execution
I am having trouble with getting an order by clause working.... this may be more ASP related but thought I ask you first.
It works in the query analyzer but not when called in the ASP page.
Code:
set replies = server.CreateObject("ADODB.Recordset")
replies.ActiveConnection = databaseString
replies.Source = "SELECT * FROM QuoteReplies WHERE ReferenceNumber = '"&Session("ReferenceNumber")&"' AND Category = '"&cat("Category")&"' AND Manufacturer = '"&man("Manufacturer")&"' ORDER BY ID ASC"
ID is an identity field but that shouldnt make a difference....i wouldnt have thought.
Any thoughts appreciated
Glen
Conception | Execution