DATE FUNCTIONS

A

angie

i have a crosstab query combining fields from multiple tables.
i have a field containing expiration dates (medium date format) e.g. 05/06/2004.
i want the crosstab query to calculate how many cards expire each month, e.g. june-2004. how can i achieve that?
 
J

John Spencer (MVP)

Try grouping by
Format([ExpirationDate],"yyyy-mm")

You will need to drop the Expiration Date field from the crosstab since it will
force a record for each date.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top