G
Guest
I need to create a query for a report to capture YTD totals (counts). I have
a table set up with customer complaints by region.. To get the initial
March-05, I have the following fields set in my query:
ComplaintMonth: Format([ComplaintRecd],"mmm") - Criteria = [Enter Month]
CountCurrentYear: IIf(Format([ComplaintRecd],"yyyy")=Year(Now()),1,0)
However, the query needs to show the following... the YTD figures in this
case would be from January to March of 2005, January to March of 2004, etc..
Mar-05 YTD-2005 YTD-2004 YTD-2003
10 15 16 30
I have tried a few different things and just cant come up with something
that works.. any help would be greatly appreciated.
Thanks
a table set up with customer complaints by region.. To get the initial
March-05, I have the following fields set in my query:
ComplaintMonth: Format([ComplaintRecd],"mmm") - Criteria = [Enter Month]
CountCurrentYear: IIf(Format([ComplaintRecd],"yyyy")=Year(Now()),1,0)
However, the query needs to show the following... the YTD figures in this
case would be from January to March of 2005, January to March of 2004, etc..
Mar-05 YTD-2005 YTD-2004 YTD-2003
10 15 16 30
I have tried a few different things and just cant come up with something
that works.. any help would be greatly appreciated.
Thanks