PresidentLincoln
asked on
Crystal Reports - Help with if...then...else formula
I am attempting to use a formula for a group, so the group header will be conditional based on a specific setting. Here's what I have:
The idea is if the PRODUCT is any of those 3 types of loans, the group header will be "Vehicle Loan", otherwise it will be the default. The problem is I keep getting this error:
I know this is a syntax issue, but I can't figure out what to do to fix it. Any assistance would be appreciated.
if {Command.PRODUCT} in ('Auto Loan','Boat Loan','Motorcycle Loan',) then {Command.HEADER}="Vehicle Loan" else {Command.HEADER}
The idea is if the PRODUCT is any of those 3 types of loans, the group header will be "Vehicle Loan", otherwise it will be the default. The problem is I keep getting this error:
The ) is missing.
I know this is a syntax issue, but I can't figure out what to do to fix it. Any assistance would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome. Glad I could help.
James
James
ASKER