G
Guest
I have a DATE/TIME field and a Currency field.
I am formatting the date to "mmmm, yyyy" then GROUPING the by month/year and
SUM the Currency field.
I want to be able to select records between dates. I cannot use criteria in
the formatted date field to select the records bewteen dates. Formatted date
is a String. I also want to sort the formatted Date field but I it will not
sort correctly because it's a String.
SELECT DISTINCTROW Format([DIE HEADINGS].[DATE],'mmmm yyyy') AS [DATE By
Month], Sum([DIE HEADINGS].[COST DIECOST]) AS [Sum Of COST DIECOST]
FROM [DIE HEADINGS]
GROUP BY Format([DIE HEADINGS].[DATE],'mmmm yyyy');
What is the appropriate way to add the criteria and sort the records by
Month/Year?
Thanks,
Bob
I am formatting the date to "mmmm, yyyy" then GROUPING the by month/year and
SUM the Currency field.
I want to be able to select records between dates. I cannot use criteria in
the formatted date field to select the records bewteen dates. Formatted date
is a String. I also want to sort the formatted Date field but I it will not
sort correctly because it's a String.
SELECT DISTINCTROW Format([DIE HEADINGS].[DATE],'mmmm yyyy') AS [DATE By
Month], Sum([DIE HEADINGS].[COST DIECOST]) AS [Sum Of COST DIECOST]
FROM [DIE HEADINGS]
GROUP BY Format([DIE HEADINGS].[DATE],'mmmm yyyy');
What is the appropriate way to add the criteria and sort the records by
Month/Year?
Thanks,
Bob