?
Solved

Crystal Reports Null Fields

Posted on 2013-11-23
2
Medium Priority
?
486 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 101

Accepted Solution

by:
mlmcc earned 2000 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
 
LVL 1

Author Closing Comment

by:daskas27
ID: 39697908
Thank you
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

809 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