I have a database of Transactions (Access 2007) that are recorded in hourly, daily and monthly intervals. I would like to view them in a meaningful way (instead of hour-by-
So as to Avoid conversion to strings, concatenations and conversion back to dates, use DATEADD() and DATEDIFF().
SELECT
DATEADD("m", DATEDIFF("m", 0, TransactionDate), 0) AS TransactionMonth,
SUM(Usage) AS TotalUsage
FROM
yourTable
WHERE
TransactionDate BETWEEN AND
GROUP BY
DATEADD("m", DATEDIFF("m", 0, TransactionDate), 0)
ORDER BY
DATEADD("m", DATEDIFF("m", 0, TransactionDate), 0)