S
Sierras
I'm having a little dificulty using CDate in a calculation between the
start of the current fiscal year and now.
The query I'm using below works fine for someone using DD/MM/YY as their
global date setting and produces a correct fiscal year starting Aug 1st of
the current year. But in the US, it doesn't work as the date is usually
MM/DD/YY and produces an incorrect fiscal start date of Jan 08.
So how can I write this same query so that it is independant of the user's
regional date settings.
Between CDate("01/08/" &
IIf(Month(Now())>=8,Year(Now()),CStr(CInt(Year(Now())-1)))) And Now()
start of the current fiscal year and now.
The query I'm using below works fine for someone using DD/MM/YY as their
global date setting and produces a correct fiscal year starting Aug 1st of
the current year. But in the US, it doesn't work as the date is usually
MM/DD/YY and produces an incorrect fiscal start date of Jan 08.
So how can I write this same query so that it is independant of the user's
regional date settings.
Between CDate("01/08/" &
IIf(Month(Now())>=8,Year(Now()),CStr(CInt(Year(Now())-1)))) And Now()