search on anniversary date

R

Rod

Greetings,

I am trying to run a perpetual query that will return
results on a date field on an anniversary date of the
current year without having to go into the query each year
and adjust the date to reflect the current year.

For example. To return all records that have a date of 31
Mar 2004 (this year).
When this same query is run next year it will return all
records that have a date of 31 Mar 2005 (next year), and
so on...

Any help would be greatly appreciated.

Rod
 
G

Graham R Seach

Rod,

SELECT * FROM tblMyTable WHERE Format(myDate, "mmdd") = "0331"

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

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