Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching a date but only by month and day

Status
Not open for further replies.

ryan4625

Technical User
Oct 3, 2005
1
US
I have a need to search a date field, which is formated in short date. I only need to search the month and day and return the realted records with those months or days in them. i am not interested in the year. ex. i have a church database with bithdates entered and they are wanted to search for a month and produce a report of birthdays in a given month. and have it produce a mailing list and a simple report also. access 2000 is the program.

Thanks Ryan4625
 
Hi

See Month() and Day() function in help

setting up a query with a WHERE clause of something like:

..WHERE Month(BDate) = Month(Date) AND Day(BDate) = Day(Date)

for example would select records for people with birthday today

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top