Query - Group by Year

K

Karen

I have a contract date field (mm-dd-yy). how can I sum another field by just
using the year?
 
K

K Dales

Use a calculated column (e.g. ContractYear:Year([contract date])) and group
that in your totals query
 
T

Tom Ellison

Dear Karen:

If this is a date/time field, it may be formatted mm-dd-yy but that is
irrelevant. Formatting is just how you see the data, not how it is stored
or how it functions.

The Year() function will extract the integer year value from this.

GROUP BY Year(YourDate)

Tom Ellison
 
Top