Birth Date (1 Viewer)

m17347047711116

Registered User.
Local time
Today, 19:28
Joined
Feb 4, 2002
Messages
68
I have a table that contains a field for birthdate.
I would like to notified whenever it is someones birthday via e-mail
Any suggestions
 

raskew

AWF VIP
Local time
Today, 13:28
Joined
Jun 2, 2001
Messages
2,734
A partial solution. Here's how you'd identify someone in your table whose birthday is today (using US short-date format):

SELECT LastName, FirstName, DOB, DatePart("yyyy",Date())-DatePart("yyyy",[DOB]) AS age
FROM tblClients
WHERE (((DatePart("m",[DOB])=DatePart("m",Date()) And DatePart("d",[DOB])=DatePart("d",Date()))=True));
 

Users who are viewing this thread

Top Bottom