I would like to compare an inputted Birthday (ShortDate) with today's date. Display in a query the birthdays within 7 days of today's date (before and after Date()).
Here is one query that will do what you need. It returns today's birthdays plus 7 days before and after.
SELECT m.MemmberName, m.BirthDt, m.Tele FROM Members m
WHERE DateAdd("yyyy",DateDiff("yyyy",[m].[Birthdt],Date()),[m].[BirthDt])) Between Date()-7 And Date()+7)); If you want to get the best answer for your question read faq183-874.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.