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

Query to show results for current month only? 1

Status
Not open for further replies.
Sep 10, 2002
150
US
I have a query which returns a number of results, one of which a date/time field displaying mm/dd/yyyy hh:mm:ss AM/PM
example, 12/22/2005 5:23:32 PM
How can I set criteria for this query to show all records from the current month only?
 
SELECT ...
FROM ...
WHERE Format([date/time field],'yyyymm')=Format(Now(),'yyyymm')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you very much for your prompt response, that did the trick!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top