Crystal Reports 9 Formulas

15 pts.
Tags:
Crystal Reports
Crystal Reports 9
Crystal Reports Database
Crystal Reports formulas
I am using Crystal 9 reports. The formula is an IF formula but one of the columns returns as a blank as there is no data, crystal doesn't read this as a value < 0 as it is blank, how can I get crystal to read a blank in the data field whilst writing a formula?

the formula is below but it won't accept {resrooms.actroomrate} ="" with "" representing a blank, I have tried <0 also, still won't accept.

Any ideas??

if {resrooms.actroomrate} > 0 then {resrooms.actroomrate} else (if {resrooms.actroomrate} ="" then {resrooms.roomrate})



Software/Hardware used:
Crystal 9.0

Answer Wiki

Thanks. We'll let you know when a new response is added.

If ISNULL({resrooms.actroomrate}) then “” else {resrooms.roomrate}

So if the resrooms.actroomrate is blank then show nothing otherwise show resrooms.roomrate

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    What do you mean by "won't accept" ? Are you getting errors ? Have you tried using the IsNull function ?
    69,410 pointsBadges:
    report
  • Meagwatts
    there isn't an error but the formula is returning a blank whereby it should return a value. I have never used an IsNull function how does that work? i am new to crystal.
    15 pointsBadges:
    report
  • carlosdl
    It would be something like this: If IsNull({resrooms.actroomrate}) then {resrooms.roomrate} Else (if {resrooms.actroomrate} > 0 then {resrooms.actroomrate}) Look for the IsNull documentation in Crystal Report's help.
    69,410 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following