ORDER BY dynamic variable
I have upgraded to CS5.5 and am now having trouble with the dynamic ORDER BY in the recordset dialog.
in the past I have been able to say: ORDER BY Oby and set Oby to Request.QueryString("Oby") and thereby pass the variable. I want to dynamically sort the page by first name, last name, or whatever. I cannot seem to response.write() the select statement as it is generated either since it seems to be fragmented so there is no variable to response.write.
The test with the default value is just fine. In the browser, however, I get this:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]The SELECT item identified by the ORDER BY number 1 contains a variable as part of the expression identifying a column position. Variables are only allowed when ordering by an expression referencing a column name.
/Admin/EditionsExpressUpdate.asp, line 21
[Aside: when I searched for this issue in the forums, I asked for "order by" and there were NONE. However when I searched for order by (without the quotes) there were a number with the exact phrase order by. What kind of a search is that?????]
