troubleshooting Question

Error in If Statement with Boolean values in Crystal Report -

Avatar of Brent
BrentFlag for United States of America asked on
Crystal Reports
25 Comments1 Solution7113 ViewsLast Modified:

I received help with my if statement in Crystal Reports:

I am trying to display my check boxes in a Crystal Report.

If {table.IsHospital} = true then
     formula = Chr(254) 
      formula = Chr (168)
End if

I am not certain if I need to declare my field as a Boolean value, or is that automatic in Crystal because of the field properties?

I am getting error when I test the formulas:

=true    produces: must be a number
=1        produces: needs to be a Boolean Value
=Yes     Produces: must be a number

I believe my datatype field is logical

list in tables as:   (udtlogical(bit),null)

Thanks for any help.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 25 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 25 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros