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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query using dates ???

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to report the records whose Birthdate field's(dd/mm/yyyy) month matches the month which was enterd as the parameter in the query.

ie, if i enter July in the parameter, then all the records whose Birthdate is in July should be displayed.

how do i do this ???
 

If you enter July as a number (7) then the where clasue would look like the following.

Where Month(Birthdate) = [Enter month to select]

If you enter the month as a string, July or Jul you can use the following.

Where format(Birthdate, "mmm") = left([Enter month to select],3)
Terry Broadbent
Please review faq183-874.

"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top