Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: (1899,12,30) Post Reply Post New Topic
Author Message
rdm0818
Newbie
Newbie


Joined: 15 Jun 2009
Location: United States
Online Status: Offline
Posts: 2
Quote rdm0818 Replybullet Topic: (1899,12,30)
    Posted: 16 Jun 2009 at 5:52am
we just installed 2008 from an earlier version and it appears the date convention 1899,12,30 no longer works. Anyone know what the new date we should use in this 2008 version that replaces the Dec 30, 1899 date?  (note: (0,0,0) does not work.) 
  (note: the 1899,12,30 was used when we needed to display only active jobs: so we would have to program Crystal to show something in  the jobs.end field....that way Crystal didn't return results showing both active and ended jobs....)
 
 
 
 
 
Thanks, Rick


Edited by rdm0818 - 16 Jun 2009 at 8:21am
Rick
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 17 Jun 2009 at 7:18am
How are you calling/using this?  I have never used that notation without some function name before it.
 
I don't have 2008, but am curious as to how you were using this.  I know that if you populate a date in SQL with the value of 0, you get 1/1/1900, so I am guessing that a date with a value of -1 would give you 12/31/1899.
 
Just wondering.
IP IP Logged
rdm0818
Newbie
Newbie


Joined: 15 Jun 2009
Location: United States
Online Status: Offline
Posts: 2
Quote rdm0818 Replybullet Posted: 17 Jun 2009 at 7:25am
I use this  as    jobs.enddate= date (1899,12,30)    and what it does is checks the jobs end date field and if blank (which means the job is still open), then  the report will see the... date(1899,12,30) and know the job is still open.....if I leave out this command statement, my results will include all jobs, active and jobs that have ended.
Rick
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Jun 2009 at 7:57am
the isnull does not work for you?
isnull({jobs.enddate})
What is your datasource type?
 


Edited by DBlank - 17 Jun 2009 at 7:57am
IP IP Logged
mad4pals
Newbie
Newbie
Avatar

Joined: 18 Jun 2009
Location: United States
Online Status: Offline
Posts: 1
Quote mad4pals Replybullet Posted: 18 Jun 2009 at 8:36am
Try jobs.enddate= TO_DATE('1899-12-31', 'yyyy-mm-dd'). It worked for me. BTW I am using Oracle DB.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.027 seconds.