This is my SQL code:
Code:
SELECT tblCust.Custid, tblMstr.ScriptName, tblMstr.[WState], tblMstr.[Start Date], tblMstr.[End Date], Sum(tblMstr.[Wages]) AS [SumOfWages]
FROM tblMstr LEFT JOIN tblCust ON tblMstr.Custid = tblCust.Custid
GROUP BY tbl Cust. Custid, tblMstr.ScriptName, tblMstr.WState, tblMstr.[Start Date], tblMstr.[End Date]
HAVING (((tblMstr.[Start Date]) Between #7/1/2013# And #8/1/2014#));
I am trying to automate to "Last twelve months" instead of prompting the users for a date. Thanks