This it possible using a form button to change the ORDER BY clause sequence from ascending to descending of a particular table column. Pressing the button again will do the reverse.
I have managed to order by a particular column but not reverse the order.
SQL STATEMENT...
<CFIF StructKeyExists(form,"time_of_event"
>
ORDER BY TimeOfEvent;
</CFIF>
<CFIF StructKeyExists(form,"booking_name"
>
ORDER BY BookingName;
</CFIF>
...
Any help will be great.
I have managed to order by a particular column but not reverse the order.
SQL STATEMENT...
<CFIF StructKeyExists(form,"time_of_event"
ORDER BY TimeOfEvent;
</CFIF>
<CFIF StructKeyExists(form,"booking_name"
ORDER BY BookingName;
</CFIF>
...
Any help will be great.