Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Help needed with Formular ! Post Reply Post New Topic
Author Message
Jacky
Newbie
Newbie
Avatar

Joined: 10 Jan 2013
Online Status: Offline
Posts: 3
Quote Jacky Replybullet Topic: Help needed with Formular !
    Posted: 10 Jan 2013 at 11:13pm
Hi there.
 
i have the following Formular

if  ({S501.SPTAG} in date(year(currentdate)-1,month(currentdate)+1, 1) to currentdate)

then ({S501.UMKZWI3}-{S501.GUKZWI3})

else 0;

Formular works perfect, except for the last Month (31.December) it didnt work. December should have been the total from Jan,1 2012 to Dec,31 2012. But the formular brought Jan 2011 back. How can i work around it so when the currentdate is december, that it would just take the total from Jan-Dez and all the other months my formular ?
 
Can anyone help ?
Jacky

 

IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 11 Jan 2013 at 4:03am
Hi
 
Try the following :
 
if ({S501.SPTAG} in date(year(currentdate)-1,1,1) to currentdate)

then ({S501.UMKZWI3}-{S501.GUKZWI3})

else 0;

Thanks,
Sastry
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.