Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Date Post Reply Post New Topic
Author Message
Alexander
Newbie
Newbie


Joined: 10 Jan 2012
Online Status: Offline
Posts: 12
Quote Alexander Replybullet Topic: Date
    Posted: 27 Oct 2012 at 8:02pm
Dear All,
In a sales report i dont want o give the date range I just want to refresh the data & automatically it should take from the 1st to till date of the current month.
 
Pls advice how can i do this???
 
Regards
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 Oct 2012 at 4:39am
1.  Create a formula that will give you the first of the current month (I'll call this {@MonthStart}:
 
Date(Year(CurrentDate), Month(CurrentDate), 1)
 
2.  In the Select Expert, edit the selection formula and add something like this:
 
{MyTable.DateField} >= {@MonthStart} and {MyTable.DateField} <= CurrentDate
 
-Dell
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Oct 2012 at 5:02am
you can also use
{table.DATE} in MonthToDate
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.016 seconds.