I want to use DatePart in a query to group/count the number of items received
per month for 2004. The data is in a table and daily receipts are posted by
day/date.
You don't really need DataPart. There is a built in Month() function
which returns an integer month number, 1 to 12, from a date. You
should be able to create a Query; in a vacant Field cell type
RecdMonth: Month([datefield])
Change it to a Totals query; group by RecdMonth and count and/or sum
the receipts.
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps