i would like to create a query that shows how many cars a salesman has sold each month.
The code i have for count the number of sales by each staff is:
SELECT CustomerSale.[SalesID#SoldBy], Count(CustomerSale.[SalesID#SoldBy]) AS [CountOfSalesID#SoldBy]
FROM CustomerSale
GROUP BY CustomerSale.[SalesID#SoldBy];
I have a field: CustomerSale.DateOfSale
how can i encorporate this to devide the count within the twelve months of a year.
Also does anyone know how to export this data from a query straight into a graph, preferably in a report in access.
The code i have for count the number of sales by each staff is:
SELECT CustomerSale.[SalesID#SoldBy], Count(CustomerSale.[SalesID#SoldBy]) AS [CountOfSalesID#SoldBy]
FROM CustomerSale
GROUP BY CustomerSale.[SalesID#SoldBy];
I have a field: CustomerSale.DateOfSale
how can i encorporate this to devide the count within the twelve months of a year.
Also does anyone know how to export this data from a query straight into a graph, preferably in a report in access.