Date query

  • Thread starter Thread starter Mel
  • Start date Start date
M

Mel

I only want a query to return records that are a year or
less than a year old
Thanks
 
Open your query in design mode. Type the following in the
criteria for your date field: >=DateAdd("yyyy",-1,Date())
This means that you want all rows where your date is
greater than or equal to last year(today's date minus 1
year).
 
-----Original Message-----
I only want a query to return records that are a year or
less than a year old
Thanks
.
Use the > or < in front of the date that = the one year
mark.
 

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