I'm using Crystal 8.5 and have the following formula as my record selection. When I run the report, it shuts down before prompting me for the password. If I delete the state part in bold, it will run fine.
(isnull({Activity.THRU_DATE}) or {Activity.THRU_DATE}>=CurrentDate) and
{Activity.PRODUCT_CODE} = "COMMITTEE/ST_STRAT_TM" and
{Name_Address.PURPOSE} = "P.O. Address" and
(
if "AL" = {?STATE_CODE} then {STATE_REPS.ALABAMA} or
if "AK" = {?STATE_CODE} then {STATE_REPS.ALASKA}
)
There must be something funky that I'm overlooking in those last few lines. I don't get any errors found when I check the formula...
Anna Jaeger
iMIS Database Support
(isnull({Activity.THRU_DATE}) or {Activity.THRU_DATE}>=CurrentDate) and
{Activity.PRODUCT_CODE} = "COMMITTEE/ST_STRAT_TM" and
{Name_Address.PURPOSE} = "P.O. Address" and
(
if "AL" = {?STATE_CODE} then {STATE_REPS.ALABAMA} or
if "AK" = {?STATE_CODE} then {STATE_REPS.ALASKA}
)
There must be something funky that I'm overlooking in those last few lines. I don't get any errors found when I check the formula...
Anna Jaeger
iMIS Database Support