Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Suppressing the current date when using yeartodate Post Reply Post New Topic
Author Message
jallen
Newbie
Newbie


Joined: 02 Oct 2012
Online Status: Offline
Posts: 3
Quote jallen Replybullet Topic: Suppressing the current date when using yeartodate
     Posted: 02 Oct 2012 at 5:22am
I need to be able to suppress the current date while still calling yeartodate. 
Unfortunetely even if the slighest bit of data is found it creates another month.
Thanks in Advance!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 02 Oct 2012 at 5:47am
by suppress you mean exclude?
table.date in yeartodate
and
table.date < currentdate
IP IP Logged
jallen
Newbie
Newbie


Joined: 02 Oct 2012
Online Status: Offline
Posts: 3
Quote jallen Replybullet Posted: 02 Oct 2012 at 6:11am
Thanks so much, that will fix it as long as the report is schduled the first day of the month.   What if it runs after the first day of the month?  
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 02 Oct 2012 at 6:18am
so you mean you want to exclude the current month not the current day as initall posted?
{table.date} in yeartodate
and
not({table.date} in monthtodate)
IP IP Logged
jallen
Newbie
Newbie


Joined: 02 Oct 2012
Online Status: Offline
Posts: 3
Quote jallen Replybullet Posted: 02 Oct 2012 at 6:42am
Score!   I had tried that before  but didnt use the ()'s    thanks again!
IP IP Logged
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