calculating total from sub-totals

DaG

New member
Local time
Today, 21:45
Joined
Mar 6, 2003
Messages
5
i need to create a query from a table which has the following fields : OrderItemsID, OrderID, ItemID, Quantity, Price where OrderItemsID is the primary Key and OrderID is the foreign key.
in the query, i've done calculation for sub-totals (price and quantity) but how will i calculate the total from all the sub-totals which have the same orderID. thanks in advance
 
Make a new query that calls the one you have already created containing your calculated subtotals. You will now be able to group by orderID and total your subtotals.
 

Users who are viewing this thread

Back
Top Bottom