Hi,
I have queries where the criteria on a date field is =Year(Now()) And Month(Now()-1).
However, I've just been told that all reporting needs to be based on the Financial year (July to June) instead of the calendar year.
I'm just wondering how I can achieve this, without hardcoding dates in my queries. Is it possible to write a function in VBA, and then call that function from the query? If so, how would this look?
Or, can I create a table with dates, and call that? (At least then it would only need to be updated in one place).
Any suggestions greatfully received!
Kirsti