With a Crystal 7 report, can I somehow define the sort order of the DETAILS section at runtime? I suspect it may be something to do with Groups and "in specified order", but I cannot work it out??
1. Create a parameter called 'Sort_order' of type string. Set default values for all the sort orders eg; Surname, Firstname.
2. Create a formula called 'Sort_by'. This should be something like:
If {?Sort_order} = 'Surname'
then {tablename.surnamefield}
else If {?Sort_order} = 'Firstname'
then {tablename.firstnamefield}
else etc;
3. Specify the sort order of the report to be {@Sort_by}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.