Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date Limitation Post Reply Post New Topic
Author Message
tterry17
Newbie
Newbie
Avatar

Joined: 09 Jul 2009
Online Status: Offline
Posts: 2
Quote tterry17 Replybullet Topic: Date Limitation
     Posted: 09 Jul 2009 at 12:06pm
Does anyone know how to limit a report to only yesterday's data? For example, month to date data is MonthToDate. I tried T-1 and Yesterday, but neither worked.
 
Thanks!
Brandie
Brandie
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Jul 2009 at 12:36pm
{table.datefield}> dateadd("d",-2,currentdate)
OOPs  Embarrassed,
Sorry but the above gives you anything since yesterday...
 
For just yesterday:
{table.datefield}= dateadd("d",-1,currentdate)


Edited by DBlank - 09 Jul 2009 at 12:52pm
IP IP Logged
tterry17
Newbie
Newbie
Avatar

Joined: 09 Jul 2009
Online Status: Offline
Posts: 2
Quote tterry17 Replybullet Posted: 09 Jul 2009 at 1:31pm

Thank you.

Brandie
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