Hi,
Try something like this:
SELECT ProjectRefNo, Sum(TimeWorked), Max(DateWorked)
FROM tblTest
Group BY ProjectRefNo,Month(DateWorked);
Substitute your table name for tblTest

Signature
HTH
Dan Artuso, Access MVP
>I have a table with four fields:-
> RefNo - autonumber
[quoted text clipped - 29 lines]
>
> Bob
try this query (open the query and select sql view and paste this in, change
"Table1" to your table name)
SELECT Table1.ProjectRefNo, Sum(Table1.TimeWorked) AS TotalTimeWorked,
Max(Table1.DateWorked) AS LastDateWorked
FROM Table1
GROUP BY Table1.ProjectRefNo, Month([dateWorked]), Year([dateWorked])
ORDER BY Max(Table1.DateWorked);
note: the Group by includes Month([dateWorked]), this will group by the
month, then to handle the case where you have more than one year (dec -jan)
you need the year as a group.
Ed Warren.
>I have a table with four fields:-
> RefNo - autonumber
[quoted text clipped - 29 lines]
>
> Bob
Robert Gillard - 18 Apr 2005 23:34 GMT
Ed,
Thank you perfect solution, just what I needed.
Bob
> try this query (open the query and select sql view and paste this in, change
> "Table1" to your table name)
[quoted text clipped - 44 lines]
> >
> > Bob