I use the following formula in my query to work FY where last week day in June is end of the FY. Works well. Is there a possibility that I can have function which does the same thing so that it readily available everywhere in my DB.
Fin Year: IIf(IsNull([budgetopening]),[FY],IIf([budgetopening]<=DateValue("30/06/" & Year([budgetopening]))-Weekday(DateValue("30/06/" & Year([budgetopening])))+1,"FY " & Right(Year([budgetopening]),2),"FY " & Right$(Year([budgetopening])+1,2)))
Fin Year: IIf(IsNull([budgetopening]),[FY],IIf([budgetopening]<=DateValue("30/06/" & Year([budgetopening]))-Weekday(DateValue("30/06/" & Year([budgetopening])))+1,"FY " & Right(Year([budgetopening]),2),"FY " & Right$(Year([budgetopening])+1,2)))