Grouping on a date field

A

Alexey

Hi i have a date field and I want to count the number of records for each
month/year ( eg March 2007). i cant seem to get the format of the date
field right just to select the month year./ COuld someone help please

tks

A
 
G

Guest

Try:

MonthYear: format([yourDateField],"mmmm yyyy")

You might want to add a couple of hidden fields for Year([yourDateField])
and Month([yourDateField]) to sort the groups sensibly.

Adrian
 
A

Alexey

Thanks for that

A

Adrian Jones said:
Try:

MonthYear: format([yourDateField],"mmmm yyyy")

You might want to add a couple of hidden fields for Year([yourDateField])
and Month([yourDateField]) to sort the groups sensibly.

Adrian

Alexey said:
Hi i have a date field and I want to count the number of records for each
month/year ( eg March 2007). i cant seem to get the format of the date
field right just to select the month year./ COuld someone help please

tks

A
 

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

Similar Threads

grouping quarters 3
Grouping By Date 1
Format a date field in a query 3
Convert Number to Date 2
Date field 2
Extract month and year 4
date query in the sub-report 1
Calculating the days in a month 3

Top