I have built a query that finds the a table entry with todays dat using date(). So far so good.
What I also want to do is have the query find entries for 7 days ago, 14 days ago & 28 days ago. I tried doing this by adding an OR date()-7 etc criteria. This didn't work. So I tried DateAdd("d",-7,Date()). This didn't work either.
The relevent SQL command is:
WHERE (((Table_WorkReturnsProject_ret.Date)=Date() Or (Table_WorkReturnsProject_ret.Date)=DateAdd("d",-7,Date())));
Any advice would be gratefully consumed!
Thanks.
What I also want to do is have the query find entries for 7 days ago, 14 days ago & 28 days ago. I tried doing this by adding an OR date()-7 etc criteria. This didn't work. So I tried DateAdd("d",-7,Date()). This didn't work either.
The relevent SQL command is:
WHERE (((Table_WorkReturnsProject_ret.Date)=Date() Or (Table_WorkReturnsProject_ret.Date)=DateAdd("d",-7,Date())));
Any advice would be gratefully consumed!
Thanks.