I'm creating PeachTree Accounting Balance Sheet report using Crystal Reports 2008
I'm grouping by AccountType, which is a numeric field in PeachTree but I want to display the name (f.e. "Cash" instead of 1
I clicked on "Display String" button in Format Editor / Common tab
I'm a newbie so I don't know the syntax
... how do I write the correct string formula for the following condition?
If {Chart.AccountType} = 0 then “Cash” else
If {Chart.AccountType} = 1 then “Accounts Receivable” else
If {Chart.AccountType} = 4 then “Other Current Assets” else
If {Chart.AccountType} = 5 then “Fixed Assets” else
If {Chart.AccountType} = 10 then “Accounts Payable” else
If {Chart.AccountType} = 12 then “Other Current Liabilities” else
If {Chart.AccountType} = 21 then “Income” else
If {Chart.AccountType} = 24 then “Expenses”
I keep getting the error: "A number, currency amount, boolean, date, time, date-time, or string is expected here."