Hi all,
I am attempting to display a datawindow that will have a SQL statement behind it and this datawindow will be passed a string. This string is what the user wanted to order the results by.
for example,
SELECT *
FROM table_a, table_b
WHERE table_a.speed = table_b.speed
ORDER BY :sg_SortChoice
the problem is that it seems the variable sg_SortChoice is being treated as a string(I obviously want the variable a string), rather than what the string represents. so it ignores it.
If I use this query,
Select *
FROM table_a, table_b
WHERE table_a.speed = table_b.speed
ORDER BY 'speed'
it total ignores my order by statement
any suggestions?
I am attempting to display a datawindow that will have a SQL statement behind it and this datawindow will be passed a string. This string is what the user wanted to order the results by.
for example,
SELECT *
FROM table_a, table_b
WHERE table_a.speed = table_b.speed
ORDER BY :sg_SortChoice
the problem is that it seems the variable sg_SortChoice is being treated as a string(I obviously want the variable a string), rather than what the string represents. so it ignores it.
If I use this query,
Select *
FROM table_a, table_b
WHERE table_a.speed = table_b.speed
ORDER BY 'speed'
it total ignores my order by statement
any suggestions?