Hello all
I have a results page pulling form an Access database using ASP, my question is. Is there a way to sort the RESULTS page by simply clicking on the table header? or am I crazy for asking this?
Top of my Page
<%
sql = "Select * from entries order by dateordered"
Dim RSresults
set RSresults=server.createobject("ADODB.recordset"
RSresults.open sql, "DSN=clients"
%>
<table border="0">
<tr>
<td width="33%" align="left">First</td>
<td width="33%" align="left">Last</td>
<td width="34%" align="left">Date Ordered</td>
</tr>
<%
Do While Not RSresults.EOF
%>
<tr>
<td width="33%">John</td>
<td width="33%">Smith</td>
<td width="34%">3/1/01</td>
</tr>
<%
RSresults.MoveNext
LOOP
%>
</table>
QUOTE OF THE DAY
Don't waste time telling people what you are doing or what you are going to do. Results have a way of informing the world.
<%
Jr Clown
)
%>
I have a results page pulling form an Access database using ASP, my question is. Is there a way to sort the RESULTS page by simply clicking on the table header? or am I crazy for asking this?
Top of my Page
<%
sql = "Select * from entries order by dateordered"
Dim RSresults
set RSresults=server.createobject("ADODB.recordset"
RSresults.open sql, "DSN=clients"
%>
<table border="0">
<tr>
<td width="33%" align="left">First</td>
<td width="33%" align="left">Last</td>
<td width="34%" align="left">Date Ordered</td>
</tr>
<%
Do While Not RSresults.EOF
%>
<tr>
<td width="33%">John</td>
<td width="33%">Smith</td>
<td width="34%">3/1/01</td>
</tr>
<%
RSresults.MoveNext
LOOP
%>
</table>
QUOTE OF THE DAY
Don't waste time telling people what you are doing or what you are going to do. Results have a way of informing the world.
<%
Jr Clown
%>