Below is the sql code I have to show me totals of individual page count of work being performed by month and year. What I would like to do is not have the month and year but to change in to a date range like "between 07/23/07 and 07/30/07. Can someone help show me what to change and what to get rid of?
Code:
SELECT DSum("OMSDailyPages","DailyOmsWorkTbl","OmsWorkerAssigned='abajacks' AND month([currentdate])=month(now) and year([currentdate])=year(now)") AS [Allen Jackson], DSum("OMSDailyPages","DailyOmsWorkTbl","OmsWorkerAssigned='abchill' AND month([currentdate])=month(now) and year([currentdate])=year(now)") AS [Corene Hilll], DSum("OMSDailyPages","DailyOmsWorkTbl","OmsWorkerAssigned='abmhende' AND month([currentdate])=month(now) and year([currentdate])=year(now)") AS [Marc Henderson], DSum("OMSDailyPages","DailyOmsWorkTbl","OmsWorkerAssigned='abcallen' AND month([currentdate])=month(now) and year([currentdate])=year(now)") AS [Chris Allen], DSum("OMSDailyPages","DailyOmsWorkTbl","month([currentdate])=month(now) and year([currentdate])=year(now)") AS Total
FROM DailyOmsWorkTbl
GROUP BY DSum("OMSDailyPages","DailyOmsWorkTbl","month([currentdate])=month(now) and year([currentdate])=year(now)"), Month([CurrentDate]), Year([CurrentDate])
HAVING (((Month([CurrentDate]))=Month(Now())) AND ((Year([CurrentDate]))=Year(Now())));