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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 months ago 1

Status
Not open for further replies.

pungigi

Programmer
Oct 29, 2003
115
0
0
US
I have some reports that will need to be run on the 13th of every month for 2 months ago, example, March 13th will run for January data, April 13th for February data etc.... Can anyone help me figure out a formula for this??? I can get it to run LASTFULLMONTH but thats about it.
 
Try something like:

{table.date} in dateserial(year(currentdate),month(currentdate)-2, 01) to dateserial(year(currentdate),month(currentdate)-1,01)-1

-LB
 
There are several ways, this is a simple one:

In the Report->Edit Selection Formula->Record (this is software version dependent which you didn't bother to post) place something like:

{table.field} >= dateserial{year(currentdate),month(currentdate)-2,1)
and
{table.field} <= dateserial{year(currentdate),month(currentdate)-1,1)-1

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top