I have a query that is generating a daily average received in $ per month, but when i use the ">=DateAdd("m",-3,Date())" for the criteria it is pulling the last 90 days.
Here is the SQL for the query;
SELECT Format([Bank_Statement_Summary].[GL_Date],"mmmm-yyyy") AS [Month], Sum(Bank_Statement_Summary.Revenue_Daily_Total) AS [Average $ Received] INTO tbl3MonthAvg
FROM Bank_Statement_Summary
GROUP BY Format([Bank_Statement_Summary].[GL_Date],"mmmm-yyyy"), Year([GL_Date]), Bank_Statement_Summary.GL_Date
HAVING (((Year([GL_Date]))=Year(Now())) AND ((Bank_Statement_Summary.GL_Date)>=DateAdd("m",-3,Date())));
I need this to only genterat the last three months by month name and not by days.
Can anyone help Please! Thanks inadvance.
Here is the SQL for the query;
SELECT Format([Bank_Statement_Summary].[GL_Date],"mmmm-yyyy") AS [Month], Sum(Bank_Statement_Summary.Revenue_Daily_Total) AS [Average $ Received] INTO tbl3MonthAvg
FROM Bank_Statement_Summary
GROUP BY Format([Bank_Statement_Summary].[GL_Date],"mmmm-yyyy"), Year([GL_Date]), Bank_Statement_Summary.GL_Date
HAVING (((Year([GL_Date]))=Year(Now())) AND ((Bank_Statement_Summary.GL_Date)>=DateAdd("m",-3,Date())));
I need this to only genterat the last three months by month name and not by days.
Can anyone help Please! Thanks inadvance.