Hi
i have 2 tables: ordersTbl with the fields (orderId,Custom erId,Date)and ordersDetailsTb l with the fields(orderId, CustomerId,Prod uctId,quantity, DestailId-autonomber)
i want to get a query that tells me how many units of each products were sold every month, at any given year.
i had tried to use the count on the quantity field grouped by ProductId,and that works, but when i add the date (using a 2 calculated field with the function month() to get the month and function year() to get the year) it doesn't group by the months and Year
Does the grouping option can group by more than 1 field?
I'm new into access ,so a detailed explanation will be appreciated
Thank you very much in advance
i have 2 tables: ordersTbl with the fields (orderId,Custom erId,Date)and ordersDetailsTb l with the fields(orderId, CustomerId,Prod uctId,quantity, DestailId-autonomber)
i want to get a query that tells me how many units of each products were sold every month, at any given year.
i had tried to use the count on the quantity field grouped by ProductId,and that works, but when i add the date (using a 2 calculated field with the function month() to get the month and function year() to get the year) it doesn't group by the months and Year
Does the grouping option can group by more than 1 field?
I'm new into access ,so a detailed explanation will be appreciated
Thank you very much in advance
Comment