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

I need to sort alphabetically 2

Status
Not open for further replies.

fergman

Technical User
Oct 19, 2000
91
US
anyone know how to make this response statment sort alhpabetically?

dim SQL
SQL = "SELECT * from employees where name "
Rs.Open SQL, schedule, 1,3

do while not rs.EOF
Response.Write &quot;<tr>&quot; & &quot;<td>&quot; & rs(&quot;name&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;monday&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;tuesday&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;wednesday&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;thursday&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;friday&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;saturday&quot;) & &quot;</td>&quot; & &quot;<td>&quot; & rs(&quot;sunday&quot;) & &quot;</td>&quot; & &quot;</tr>&quot;

 
SELECT columnName FROM tableName ORDER BY columnName

check out:


for more info.
penny.gif
penny.gif
 
SQL =&quot;select * from employees order by name (or whatever you want to order by). You can even order by 2 items:

SQL =&quot;select * from employees order by Lname, Fname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top