I am trying to write a forumula that is based on my parameter field being found in a database field and displaying a value based on this. If the parameter field value is not found in the database fields I want to display a different value in my formula. This is the formula I have tried but I get the error "keyword 'then' is missing".
I am using Crystal Reports version 8. I may not be approaching this the correct way so any suggestions are appreciated.
//Global stringvar active;
if {?Agent} in {V_AGTSTAT_RPT.A04_ANUM}
and {V_AGTSTAT_RPT.PAP} = 'Y'
then active := 'Active'
else if {?Agent} in {V_AGTSTAT_RPT.A04_ANUM}
and {V_AGTSTAT_RPT.PAP} = 'N'
then active := 'Inactive'
else if {?Agent} in{V_AGTSTAT_RPT.A04_ANUM}not
then active := 'Not Assigned'//
I am using Crystal Reports version 8. I may not be approaching this the correct way so any suggestions are appreciated.
//Global stringvar active;
if {?Agent} in {V_AGTSTAT_RPT.A04_ANUM}
and {V_AGTSTAT_RPT.PAP} = 'Y'
then active := 'Active'
else if {?Agent} in {V_AGTSTAT_RPT.A04_ANUM}
and {V_AGTSTAT_RPT.PAP} = 'N'
then active := 'Inactive'
else if {?Agent} in{V_AGTSTAT_RPT.A04_ANUM}not
then active := 'Not Assigned'//