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

Passing string to asp page to be placed as ORDER BY column in SELECT 2

Status
Not open for further replies.

Varmit

MIS
Nov 26, 2001
5
US
Rephrase of earlier question


Hyperlinking to -- view.asp?sortcol=company_name

in the asp section <!--webbot DatabaseRegionStart .... s-criteria s-sql=&quot;SELECT * FROM company_table ORDER BY ??????? &quot; .... -->

where ?????? is the syntax that takes the passed variable and puts it into this <!--webbot --> declaration after 'ORDER BY'

suggested methods produced various errors.. see original Thread.
 


varmit,

Here are two examples:

sql = &quot;SELECT * FROM company_table ORDER BY EmployeeID ASC&quot;

sql = &quot;SELECT * FROM company_table WHERE Employee_FirstName = 'John'&quot;


Hope this helps,
fengshui1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top