Hello to all,
I have two queries in Access 2002 that provide monthly sales by customer, one for 2004 and one for 2005. Each query contains these fields:
CustomerName, Year, Month, SalesAmnt.
Some customers may not have sales in a given month, so there will be no record for that month.
I want to write a query that will give me this years YTD sales (which is easy because I just have to sum sales for 2005)and last years sales for the same period (this is were i am having trouble because if I join the two queries by month and one customer has no sales in 2/04 but has sales in 2/05, this month will not be in either the YTD total). If I could show a record for every month for each customer, even if there were zero sales, it would work. But, like I said, if there were no sales for a customer in a given month, there will be no record.
Any help would be greatly appreciated.
Mike
I have two queries in Access 2002 that provide monthly sales by customer, one for 2004 and one for 2005. Each query contains these fields:
CustomerName, Year, Month, SalesAmnt.
Some customers may not have sales in a given month, so there will be no record for that month.
I want to write a query that will give me this years YTD sales (which is easy because I just have to sum sales for 2005)and last years sales for the same period (this is were i am having trouble because if I join the two queries by month and one customer has no sales in 2/04 but has sales in 2/05, this month will not be in either the YTD total). If I could show a record for every month for each customer, even if there were zero sales, it would work. But, like I said, if there were no sales for a customer in a given month, there will be no record.
Any help would be greatly appreciated.
Mike