Hi All,
I intend to creat a checkbox in Crystal Report XI. what I did was as follows:
I creat a formula @check_box where I entered:
if {INS.CODE} in ['XXX', 'YYY', 'ZZZ'] then // CODE -- string value
chr(253) // display a checkbox with a cross
else
chr(168) // display a checkbox only
then I drag the formula into Group header, and right click to select format field, select font tab, and choose Windings as a type of font, and size = 12
However the above approach didn't work; if I comment out "if {INS.CODE} in [XXX, YYY, ZZZ]", there is a checkbox with a cross appeared. Of course this is not what I expected to achieve. It looks like the report deosn't recognises the if-then condition.
Could somebody please adivse a workable approach/ Thanks in advance.
John
Edited by johnwsun - 26 Oct 2009 at 1:37am