sdonaldson
Programmer
Using CR 8.5 Developer Edition on Windows 2000.
I have a report which I wish to allow the user to sort in one of three ways - by account number, this year's turnover, or last year's turnover.
I know, and have proved, that this can be done by using a formula to select the appropriate database field(s) and including it in the Sort Fields list, but this does not appear to alter the ORDER BY clause of the SQL SELECT statement.
My understanding is that this will result in the sorting being performed locally by CR and not on the SQL server.
Is there any way of dynamically changing the ORDER BY clause according to a report parameter ?
Thanks in advance.
Shaun
I have a report which I wish to allow the user to sort in one of three ways - by account number, this year's turnover, or last year's turnover.
I know, and have proved, that this can be done by using a formula to select the appropriate database field(s) and including it in the Sort Fields list, but this does not appear to alter the ORDER BY clause of the SQL SELECT statement.
My understanding is that this will result in the sorting being performed locally by CR and not on the SQL server.
Is there any way of dynamically changing the ORDER BY clause according to a report parameter ?
Thanks in advance.
Shaun