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

Help with date formulas!!!

Status
Not open for further replies.

PQTIII

IS-IT--Management
Sep 21, 2004
110
If it is the 1st of the month I want to run last month's report. If not I want to have it run MTD. I have this formula in the select expert section for the date range, but it doesn't work. Is there a diffent way to do this?


if CurrentDate = Date(1) then {930_OEE.shiftdate} in LastFullMonth else {930_OEE.shiftdate} in MonthToDate

Thanks PT
 
if Day(CurrentDate) = 1 then {930_OEE.shiftdate} in LastFullMonth else {930_OEE.shiftdate} in MonthToDate


Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Works great! Thanks so much for your help.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top