dates

G

Guest

I have a query that I would like to pull the previous 12 months and any dates
in the future. So if I had events that have occurred in the past 12 months
and then had 12 events that are yet to occur in the future, I would like to
include all of these events in my query. I would like this to reflect
today's date. So tomorrow, my results may be different. Thank you for your
time.
 
F

fredg

I have a query that I would like to pull the previous 12 months and any dates
in the future. So if I had events that have occurred in the past 12 months
and then had 12 events that are yet to occur in the future, I would like to
include all of these events in my query. I would like this to reflect
today's date. So tomorrow, my results may be different. Thank you for your
time.

As criteria in the Date field:
 
J

John Vinson

I have a query that I would like to pull the previous 12 months and any dates
in the future. So if I had events that have occurred in the past 12 months
and then had 12 events that are yet to occur in the future, I would like to
include all of these events in my query. I would like this to reflect
today's date. So tomorrow, my results may be different. Thank you for your
time.

Use a criterion of
= DateAdd("yyyy", -1, Date())

This will subtract a year from today's date and return all records
where the date field is later than that date.

John W. Vinson[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

Similar Threads


Top