I have a table tracking user entries and I want to build a few queries to show the sum of a particular field for the current year, last year and two years back.
Currenty I do this using >=#1/1/2008# for the current year query and >#12/31/2006 and <#1/1/2008# for last years query. The problem with this is that the query and the forms that display its results must be updated every year.
I tried to use >Year(now()) for the current year and
>year(now()-2) and <year(now()) for last year. however that does not work.
Any suggestions?
Thanks
Currenty I do this using >=#1/1/2008# for the current year query and >#12/31/2006 and <#1/1/2008# for last years query. The problem with this is that the query and the forms that display its results must be updated every year.
I tried to use >Year(now()) for the current year and
>year(now()-2) and <year(now()) for last year. however that does not work.
Any suggestions?
Thanks