I am using CR XI and I am trying to build a report that allows the user to select various sort options. I have built the parameter to capture the user selection and built a formula to determine which one to use for the sort. I put the formula on the group header. This is the formula I have so far which is working:
if {?Sort Field} = '2' then
{VENDOR_ACCOUNT.ZIP_BASE} else
if {?Sort Field} = '3' then
{VENDOR_ACCOUNT.ACCT_NAME} else
if {?Sort Field} = '4' then
{%acct_tochar}
These are all string fields being sorted ascending. The problem is Option '1' needs to sort on a running total field that is numeric (running total of dollar amt) and in descending order. When I try to add that option by converting it to a string field, I get an error.
Any help or ideas on how I can include this would be greatly appreciated.
PS... this is my first time using Crystal Reports.