Hi All,
Total newbie, so please be kind.
sortby is set in a form. (EG. id, name, date, group etc)
I output sortby and can confirm that it is correctly set.
As you can see I need the value in sortby resolved to a specific column name, so as to display the resultset in that order.
Problem : If I hardcode "BY date" "BY name" etc. it works fine. But when I introduce the sortby variable containing the sort criteria it doesn't.
I've checked a lot of threads but couldn't find an answer, sorry if I missed it.
Total newbie, so please be kind.
Code:
def var sortby as char.
sortby is set in a form. (EG. id, name, date, group etc)
I output sortby and can confirm that it is correctly set.
Code:
OPEN QUERY brdquery FOR EACH brd [COLOR=red]BY sortby[/COLOR].
As you can see I need the value in sortby resolved to a specific column name, so as to display the resultset in that order.
Problem : If I hardcode "BY date" "BY name" etc. it works fine. But when I introduce the sortby variable containing the sort criteria it doesn't.
I've checked a lot of threads but couldn't find an answer, sorry if I missed it.
