cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal reports Group heading text change

Simon3
Explorer
0 Kudos

I'm trying to get a group heading in crystal reports to show a different text to the one being returned is using the following formula but it just say error Boolean expected :

if {_PM_OSCT.U_Branch} := '53' then 'Branch 1' else
if {_PM_OSCT.U_Branch} := '54' then 'Branch 2' else
if {_PM_OSCT.U_Branch} := '55' then 'Branch 3' else
if {_PM_OSCT.U_Branch} := '67' then 'Branch 4' else
if {_PM_OSCT.U_Branch} := '68' then 'Branch 5' else
if {_PM_OSCT.U_Branch} := '69' then 'Branch 6' else
if {_PM_OSCT.U_Branch} := '70' then 'Branch 7' else
if {_PM_OSCT.U_Branch} := '72' then 'Branch 8' else
if {_PM_OSCT.U_Branch} := '73' then 'Branch 9' else
if {_PM_OSCT.U_Branch} ;: '74' then 'Branch 10' else "Error";

Any help would be greatly appreciated as its doing my head!

Thanks,

 

Simon.

 

Accepted Solutions (1)

Accepted Solutions (1)

ido_millet
Active Contributor

You seem to be using an assignment operator (:=) instead of equal check (=).

For example, 

if {_PM_OSCT.U_Branch} := '53'

should be changed to :

if {_PM_OSCT.U_Branch} = '53'



Answers (1)

Answers (1)

JWiseman
Active Contributor
0 Kudos

Hi Simon, there's a semi-colon in the middle of the last line which looks like the cause of the error.