KavJack
Programmer
- Apr 1, 2001
- 46
I have a form which displays my 100+ records in a particular sort order based on a query. I want to incorporate a radio button (option group button) to select a particular sort order. Right now, I have two SQL queries which sort the same records in a different order. I have an option group control value which takes on the value 1 for a sort by division or 2 for a sort by alpha. How can I use this value to select which sort order I want so that when I scroll through the records on my form I see them in the order that I have selected ? Is it possible to dynamically generate the ORDER BY statement in the query or do I have to have two different queries ?