Crystal Report Conditional Formatting not working

I have the following conditon on the Format Field (Font) of a field on my crystal report.  The formattiong works fine for Glucose > 400.0 but does not work for A1C > 5.  I cannot figure out why.  Does anyone have any ideas?

if trim({LTN7_GLab_View.TestCode}) = "GLU" and {@NumResult} > 400.0 then crbolditalic
else 
    if trim({LTN7_GLab_View.TestCode}) = "AIC" and {@NumResult} > 7.0 then crBoldItalic

Open in new window

kshumwayAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
cerrmjConnect With a Mentor Commented:
It looks like you have the letter I in your A1C instead of the number 1 in your statement - could that be the problem?
Good Luck,
Bob.
0
 
kshumwayAuthor Commented:
I never noticed it was an "I" instead of a "1".  Thank you for the extra set of eyes!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.