May 2, 2006 #1 smtoomey3 Technical User Nov 8, 2005 69 US Can someone tell me what is wrong with this formula crystal keeps telling me I'm missing a ( if {OELINHST_SQL.shipped_dt}=0 then (DateToJulian(CurrentDate)) else {@ShippedDateJulian}
Can someone tell me what is wrong with this formula crystal keeps telling me I'm missing a ( if {OELINHST_SQL.shipped_dt}=0 then (DateToJulian(CurrentDate)) else {@ShippedDateJulian}
May 2, 2006 #2 dgillz Instructor Mar 2, 2001 10,043 US I am assuming this is crystal....why are you using julian dates? I see no problems with your formula however. Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports http://www.gainfocus.biz Upvote 0 Downvote
I am assuming this is crystal....why are you using julian dates? I see no problems with your formula however. Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports http://www.gainfocus.biz
May 3, 2006 #3 kscheeler Instructor Jul 30, 2003 437 US You could try it this way: if {OELINHST_SQL.shipped_dt}=0 then DateToJulian(CurrentDate) else {@ShippedDateJulian} or use the NumberToDate function in Crystal and do this: if {OELINHST_SQL.shipped_dt}=0 then CurrentDate else NumberToDate({OELINHST_SQL.shipped_dt}) Kevin Scheeler Upvote 0 Downvote
You could try it this way: if {OELINHST_SQL.shipped_dt}=0 then DateToJulian(CurrentDate) else {@ShippedDateJulian} or use the NumberToDate function in Crystal and do this: if {OELINHST_SQL.shipped_dt}=0 then CurrentDate else NumberToDate({OELINHST_SQL.shipped_dt}) Kevin Scheeler