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

New Monthly Totals

Status
Not open for further replies.

rmiller11

MIS
Joined
Jan 20, 2003
Messages
43
Location
US
Now they want 12 month projections of current date so this is what I have:

NumberVar Month1Total;
if (Month({PJPROJ.end_date}) = Month (CurrentDate)) and (Year({PJPROJ.end_date}) = Year(CurrentDate))
Then Month1Total := {vr_RVI_ProfitByJob.eac_Revenue} else 0

It doesn't quite work properly as it is not matching the month properly but it is matchig the year. Can't quite figure out why it's not working. The other problem is what happens when the year changes and I am doing 12 months from October? How do I handle that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top