Show cumulative items per month not by day

E

Ed

I want to show cumulative items per month but this is showing by day???

[ECD] is a date field.

[ECD Cum] is an alias for the cummulative result



I want to count the number of actions items in a month that have a date.



SELECT (SELECT
count([ecd])
FROM
[tblActionItems] AS [Self]
WHERE
[Self].[ecd] <= [tblActionItems].[ecd]) AS [ECD Cum], tblActionItems.ECD
FROM tblActionItems
ORDER BY tblActionItems.ECD;
 
E

Ed

It already works on the date, its 'by month' that I want to group by. That
is what I do not know how to do.

hi,
you need a group by on the date.
-----Original Message-----
I want to show cumulative items per month but this is showing by day???

[ECD] is a date field.

[ECD Cum] is an alias for the cummulative result



I want to count the number of actions items in a month that have a date.



SELECT (SELECT
count([ecd])
FROM
[tblActionItems] AS [Self]
WHERE
[Self].[ecd] <= [tblActionItems].[ecd]) AS [ECD Cum], tblActionItems.ECD
FROM tblActionItems
ORDER BY tblActionItems.ECD;




.
 

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