Using dates in queries

LoneAngel666

New member
Local time
Today, 19:40
Joined
Nov 23, 2003
Messages
7
Hey all,

I'm currently writing a query that is meant to display a list of all properties that were being rented within the last 24 months. However, the closest I can get to writing any kind of suitable criteria is this:

>Date()-(24*28)

I'm sure there is a better way to write this out - something a little more accurate too - anyone?

:confused: :confused: :confused: :confused: :confused:

Rob
 
You can use the DateAdd function for your purpose.
Code:
>DateAdd("yyyy", -2, Date())
 
Thanks, that was perfect

I knew there was an easy way :D

Rob
 

Users who are viewing this thread

Back
Top Bottom