Solved

dealing with NULL date fields in Crystall 2008

Posted on 2011-02-15
2
553 Views
Last Modified: 2012-05-11
Morning Experts,

I'm working with a report that has Date Time criteria.  When an end user views a screen within the application that contains a Date or DateTime field it stores the default date of Jan 1 1800 in order to display the data as a Date or DateTime.  This means that for most records in the database these fileds are populated with either a true date, or 1800,1,1.  So when working with selection criteria to find records without certain date having been filled out we would use a formula such as:

{custom_loanmain.OptimumReimbDate} = DateTime (1800, 01, 01, 00, 00, 00)

This has been working fine for some time but recently we have an issue where the workflow of the user may allow them to never visit certain screens within the application and therefore these fields are not populated but remain NULL.  These records are then screened from the report as they do not meet the selection critera.  What would be the correct syntax to select records that are both NULL and = (1800, 01, 01, 00, 00, 00)?

0
Comment
Question by:ISBTECH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 34898079
isnull({custom_loanmain.OptimumReimbDate}) or ({custom_loanmain.OptimumReimbDate} = DateTime (1800, 01, 01, 00, 00, 00))

0
 

Author Closing Comment

by:ISBTECH
ID: 34899509
Thanks that worked perfectly!  I was doing it backwards:

{custom_loanmain.OptimumReimbDate} isnull
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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