Solved

Crystal Reports Null Fields

Posted on 2013-11-23
2
450 Views
Last Modified: 2013-12-05
Hello,
      I have a Crystal report that uses a date field to pull data. I have this report field selecting by “less than or equal to” a date I have decided was a workable date. However, some of these date fields are null. How do I tell the report to keep using the “less than or equal to” date as well as if it is null? What I mean is that I would like to show both the “less than or equal to” and null items.

Thank you
0
Comment
Question by:daskas27
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39671451
Remember NULL is the ABSENSE of a value.  It is not a value and cannot be compared.
When Crystal encounters a NULL it terminates the evaluation and the result is indeterminate.

Instead you have to test for it.

Try this

(
   IsNull({YourDatefield})
   OR
   {YourDatefield} <= {?DateParameter}
)

mlmcc
0
 

Author Closing Comment

by:daskas27
ID: 39697908
Thank you
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question