So below is my union query that I am having issues with. I am trying to get it to pull the last 13 months (Sep 2010 through Sep 2011) but am having some issues. When I set it to ("m", -13, ... it pulls August 2010 through August 2011. When I change it to -12, the query pulls the same date range minus September 2010. I have searched many forums and tried their solutions but seems to end up with the same problems. Any thoughts or suggestions would be greatly appreciated.
SELECT [Month Reporting],[Portfolio],[Call Volume],[Abandonment Rate],[Average Calls Per Day]
From [qryPhonesTotalsUS]
WHERE Format([Month Reporting], "mmmm yyyy")<=Format(DateAdd("m", -13, Date()), "mmmm yyyy")
UNION ALL SELECT [Month Reporting],[Portfolio],[Call Volume],[Abandonment Rate],[Average Calls Per Day]
From [qryPhonesTotalsPR]
WHERE Format([Month Reporting], "mmmm yyyy")<=Format(DateAdd("m", -13, Date()), "mmmm yyyy")
ORDER BY Portfolio, [Month Reporting];
SELECT [Month Reporting],[Portfolio],[Call Volume],[Abandonment Rate],[Average Calls Per Day]
From [qryPhonesTotalsUS]
WHERE Format([Month Reporting], "mmmm yyyy")<=Format(DateAdd("m", -13, Date()), "mmmm yyyy")
UNION ALL SELECT [Month Reporting],[Portfolio],[Call Volume],[Abandonment Rate],[Average Calls Per Day]
From [qryPhonesTotalsPR]
WHERE Format([Month Reporting], "mmmm yyyy")<=Format(DateAdd("m", -13, Date()), "mmmm yyyy")
ORDER BY Portfolio, [Month Reporting];