The SWITCH function might do what you want. Something like (air code):
Quarter:
Switch(Month([SHIP_DATE]),1,Month([SHIP_DATE]),1,Month([SHIP_DATE]),1,
Month([SHIP_DATE]),2,Month([SHIP_DATE]),2,Month([SHIP_DATE]),2,
Month([SHIP_DATE]),3,Month([SHIP_DATE]),3,Month([SHIP_DATE]),3,
Month([SHIP_DATE]),4,Month([SHIP_DATE]),4,Month([SHIP_DATE]),4))
This should give you 1 for months Jan, Feb, Mar, 2 for Apr, May Jun, etc.
Another way might be:
Quarter: INT(Month([SHIP_DATE])/4)+1
Pete
Rob Parker said:
There is no standard "quarter" in Access. If you want one, you'll have to
write your own custom function to provide it - and that will also allow you
to define exactly what you want it to be.
Rob
for queries, what is the quarterly date format. I have month and year:
Month([SHIP_DATE])
Year([SHIP_DATE])
What is quarterly?