datediff function

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

How can i say in a query using the datediff function
less than 2 months from the current date?
 
YOUR request is a bit ambiguous.

Do you want dates that are:
between today's date and two months in the past;
between today's date and two months in the future;
between two months in the past and two months in the future;
after two months in the past;
before two months in the past;
or something else?


Any date that occurs after two months ago
Field: SomeDate
Criteria: >DateDiff("m",-2,Date())
 
Thank you this worked for the month i tried using
this for the year and put in "yyyy" in place of month
but it did not work would you happen to know why?
 
Sorry that should have used the DateADD function NOT the DateDiff Function.
 

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

Similar Threads


Back
Top