Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Finding date then replaceing it with another field Post Reply Post New Topic
Author Message
stuaz
Newbie
Newbie


Joined: 01 Jan 2009
Online Status: Offline
Posts: 1
Quote stuaz Replybullet Topic: Finding date then replaceing it with another field
     Posted: 19 May 2009 at 1:54pm
Hi,

Just wondering if someone could guide me in the right direction:

I have a date field coming over from a SQL database that is:

01/01/1900 00:00:00 (In its raw form)

Is there a way I can say that if that field appears - replace it with another field and if that field returns the same date/time then replace with "N/A"

Does that make sense?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 May 2009 at 2:12pm
if {table.date1}= #01/01/1900# and {table.date2}= #01/01/1900# then "N/A" else
if {table.date1}= #01/01/1900# then totext({table.date2},"MM/dd/yyyy") else
totext({table.date1},"MM/dd/yyyy")


Edited by DBlank - 19 May 2009 at 2:14pm
IP IP Logged
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