Why not use

WHERE Month(DOB) = Month(GetDate) AND Year(DOB) = Year(GetDate()) 


Tyler Clendenin
GSL Solutions

-----Original Message-----
From: Claremont, Timothy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 9:20 AM
To: CF-Talk
Subject: Correct Way To Query For Birthdays

My field name is DOB, and I want to query the list for dates that match
today. Of course, the year will never match. I have tried a bunch of
different ways, but I know there must be a more elegant way!

BTW: CFMX and Access

TIA,
Tim
**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please delete it from your system.

This footnote also confirms that this email message has been swept for the
presence of computer viruses.

Thank You,
Viahealth
**********************************************************************




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192544
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to