?
Solved

dealing with NULL date fields in Crystall 2008

Posted on 2011-02-15
2
Medium Priority
?
555 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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