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!

Fiscal year conversion not working

Status
Not open for further replies.

haneen97

Programmer
Dec 10, 2002
280
US
Hi,
I have this code in a formula field called “FY_YEAR” to convert the fiscal year to the next year in the last quarter. It works fine in the last quarter but it does not return any thing if the month is less than 10.
********************************************************************
numbervar F_Year := Year ({CTC_UM_Denial.rvw_signedreceipt_denial});
numbervar Mon := month({CTC_UM_Denial.rvw_signedreceipt_denial});

if mon in 10 to 12 then
f_year := f_year + 1;

f_year;
********************************************************************
Please help

Thanks


Mo
 
Try:

numbervar F_Year;
numbervar Mon := month({CTC_UM_Denial.rvw_signedreceipt_denial});

if mon in 10 to 12 then
f_year := f_year + 1
else
f_year := Year ({CTC_UM_Denial.rvw_signedreceipt_denial});

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top