Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with formula:

Status
Not open for further replies.

smtoomey3

Technical User
Joined
Nov 8, 2005
Messages
69
Location
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}
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top