Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: First day of the year hardcoded Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Oct 2009 at 1:13pm
There may be other options for some of these but these should work. Check in the help fiels for more info:
 
If {?Trial} = "Today" then
{Order.CreateDateTime}= currentdate
else if {?Trial} = "Yesterday" then
{Order.CreateDateTime}=datedd('d',-1,currentdate)
 
else if {?Trial} = "This Week" then
{Order.CreateDateTime} > dateadd('d',-weekday(currentdate),currentdate)

else if {?Trial} = "Last week" then
{Order.CreateDateTime} in lastfullweek

else if {?Trial} ="This Month" then
{Order.CreateDateTime} in monthtodate

else if {?Trial} ="Last Month" then
{Order.CreateDateTime} in lastfullmonth
IP IP Logged
Vertex
Newbie
Newbie
Avatar

Joined: 29 Oct 2009
Location: India
Online Status: Offline
Posts: 24
Quote Vertex Replybullet Posted: 29 Oct 2009 at 1:21pm
Thanks Sir ....
Hi Peoples
IP IP Logged
<< Prev Page  of 2
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.015 seconds.