Hi all, I can't work out how to do this query...
qselProductSalesCalculator shows a date when a product was purchased, the name of the product, the salesperson, and the quantity of the product, as follows:-
Salesperson Date_TimeOfPurchase Product Quantity
Mike 24/05/2009 Mulch 10
Mike 10/06/2009 Mulch 3
Mike 10/06/2009 Compost 20
Mike 21/06/2009 Mulch 8
Jim 03/08/2009 Bark 15
Jim 03/08/2009 Mulch 10
Rob 08/12/2009 Compost 5
Rob 31/12/2009 Grass Seed 3
etc etc
I/the boss, want to be able to view how much of each product a salesperson has sold between two dates. I already have this data in a subform, and a main form set up to search by salesperson and date range.
What I can't figure out is how to sum and group the query. So if for example I seached for Mike, between 01/05/2009 and 01/07/2009 I would like it to show...
Mike Mulch 21
Mike Compost 20
Any idea's? I know I don't need/want the date to show, but I still need it in the query don't I to be able to search between dates.
Sorry I've been working hard at this database for a few days now and my brains starting to get a bit confused lol
qselProductSalesCalculator shows a date when a product was purchased, the name of the product, the salesperson, and the quantity of the product, as follows:-
Salesperson Date_TimeOfPurchase Product Quantity
Mike 24/05/2009 Mulch 10
Mike 10/06/2009 Mulch 3
Mike 10/06/2009 Compost 20
Mike 21/06/2009 Mulch 8
Jim 03/08/2009 Bark 15
Jim 03/08/2009 Mulch 10
Rob 08/12/2009 Compost 5
Rob 31/12/2009 Grass Seed 3
etc etc
I/the boss, want to be able to view how much of each product a salesperson has sold between two dates. I already have this data in a subform, and a main form set up to search by salesperson and date range.
What I can't figure out is how to sum and group the query. So if for example I seached for Mike, between 01/05/2009 and 01/07/2009 I would like it to show...
Mike Mulch 21
Mike Compost 20
Any idea's? I know I don't need/want the date to show, but I still need it in the query don't I to be able to search between dates.
Sorry I've been working hard at this database for a few days now and my brains starting to get a bit confused lol