jessieyull
Technical User
I can't seem to make the formula that I want work!! I'm no programmer so I had one come review my formula and he couldn't figure out why Crystal didn't like it either.
I have a couple of formulas that are returning the proper data in their columns. In another column, I am trying to compare the results of the two formulas to return a constant value. Crystal seems to get confused and returns nothing for this comparison column. Here is the syntax...
if {@HealthPlan} like '*Perf*'
and {@HealthCoverage} like '*Family*'
then '$500'
If I substitute one of the formulas for a report field such as...
if {@HealthPlan} like '*Perf*'
and {last_name} like '*Last*'
then '$500'
it works! It seems like it just doesn't want to have two formulas in the comparison. Each of the above formula statements works on its own. In other words...
if {@HealthPlan} like '*Perf*'
then '$500' WORKS!!
**AND**
if {@HealthCoverage} like '*Family*'
then '$500' WORKS!!
Just not when I try to combine them. Any ideas?
I have a couple of formulas that are returning the proper data in their columns. In another column, I am trying to compare the results of the two formulas to return a constant value. Crystal seems to get confused and returns nothing for this comparison column. Here is the syntax...
if {@HealthPlan} like '*Perf*'
and {@HealthCoverage} like '*Family*'
then '$500'
If I substitute one of the formulas for a report field such as...
if {@HealthPlan} like '*Perf*'
and {last_name} like '*Last*'
then '$500'
it works! It seems like it just doesn't want to have two formulas in the comparison. Each of the above formula statements works on its own. In other words...
if {@HealthPlan} like '*Perf*'
then '$500' WORKS!!
**AND**
if {@HealthCoverage} like '*Family*'
then '$500' WORKS!!
Just not when I try to combine them. Any ideas?