Previous 12 months not corrent month.

  • Thread starter turks67 via AccessMonster.com
  • Start date
T

turks67 via AccessMonster.com

I have a query with dates from the current month to the last 12 previous
months. How do I query the last 11 Months leaving out the current month?

Thanks
 
T

Tom van Stiphout

On Fri, 10 Jul 2009 03:10:39 GMT, "turks67 via AccessMonster.com"

I exclusively use DateAdd and DateDiff for date math:

.... where myDateField between DateAdd("m", -1,myDateField)
and DateAdd("m", -12,myDateField)
(of course you replace myObjectNames with yours)

-Tom.
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top