Solved

dealing with NULL date fields in Crystall 2008

Posted on 2011-02-15
2
548 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
2 Comments
 
LVL 77

Accepted Solution

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

0
 

Author Closing Comment

by:ISBTECH
Comment Utility
Thanks that worked perfectly!  I was doing it backwards:

{custom_loanmain.OptimumReimbDate} isnull
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now