Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: converting dates with null values Post Reply Post New Topic
Author Message
ricky_vegas
Newbie
Newbie


Joined: 03 Jan 2008
Location: United States
Online Status: Offline
Posts: 15
Quote ricky_vegas Replybullet Topic: converting dates with null values
    Posted: 04 Jan 2008 at 11:32am
I need to convert three char fields into dates: DATE_ORDERED, DATE_WANTED, DATE_SHIPPED.
 
I created a formula for each of the three fields @DateWanted: CDate({JC10.DATE_WANTED}) etc.
 
When I subtract DATE_WANTED - DATE_ORDERED everything works fine. When I try to subtract DATE_SHIPPED - DATE_WANTED i get a "bad string error" because some of the values in the DATE_SHIPPED are null (not shipped yet).
 
How can I fix this issue? I tried to use an If statement but obviously I did something wrong. Can someone help?
 
Thanks so much.
 
Rick
 
(p.s.: I hope I haven't posted twice. If so I apologize but I could not see my first posting).
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.016 seconds.