Talk with the Author
 Crystal Reports Forum : General Information : Talk with the Author
Message Icon Topic: Adding Dates Post Reply Post New Topic
Author Message
klaxon
Newbie
Newbie
Avatar

Joined: 06 Aug 2008
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote klaxon Replybullet Topic: Adding Dates
    Posted: 06 Aug 2008 at 4:52am
Hi,
 
I have been trying to add dates together but keep getting syntax errors.
Can anyone please help
 
if {traders.creditmethod} = "E"
then DateAdd ("d",{@Days to Month End} ,{traders.creditdays} )
else DateAdd ("d",{slsummary.taxdate} ,{traders.creditdays} )
 
 
Thanks

Mofi
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 09 Aug 2008 at 4:25pm
I think the parameters are in the wrong order. The second parameter is units to add and the third parameter is the date field. Also, make sure the second parameter is an integer.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.031 seconds.