Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Date Param and Month to Date information Post Reply Post New Topic
Author Message
TMass
Newbie
Newbie


Joined: 21 Oct 2010
Online Status: Offline
Posts: 1
Quote TMass Replybullet Topic: Date Param and Month to Date information
     Posted: 21 Oct 2010 at 12:36pm
I'm trying to figure out how to create a param formula that will give me Month to Date, Year to Date and Life to Date.  It's been a long while since I've used Crystal reports and need help getting beyond the simple operations. If I find out how to do Month to Date, the rest should fall into place.

Month to Date - Ultimately a To & From date would be selected, and the report would return MTD information

YTD-.... and so on.


**** thanks for any help on this!

Trav
Trav
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 22 Oct 2010 at 2:41am
month to date would be a formula like:
 
{table.field} >= CDate(YEAR(Today), MONTH(Today),1)
 
other options for the keyword Today: Now, CurrentDate...so many ways to get today's date.
 
HTH
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