Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Month to Date Formula 1

Status
Not open for further replies.

plextor

IS-IT--Management
Jan 7, 2003
34
US
I really need help creating a date selection formula. I'm attempting to capture information for the current month. The report is ran daily to get information for the previous business day, and the rest of the month. For example: today's report will include the 1st to the 17th of August.

I tried to use the "MonthToDate" selection, but it fails to get the last day of the month.

Any help would be greatly appreciated.

Brian
CR 9.0 Professional
 
You can use something like this:

{table.date} in minimum(monthtodate) to currentdate


or this would work as well:

{table.date} in minimum(monthtodate) to maximum(monthtodate)+1

~Brian
 
Try Report->Edit Selection Formula->Record:

{table.date} >= cdate(year(currentdate),month(currentdate),1)
and
{table.date} <= currentdate-1

-k
 
If you are looking for the whole month, try this instead:

{table.date} in minimum(monthtodate) to dateadd("m",1,minimum(monthtodate))-1

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top