Hi Everybody,
I have 2 tables and one query as below
1- Order Table
OrderID | CustomerID | CusromerName | OrdDate
2- Payment Table
OrderID | Amount | PYMDate
3- Order Deatails Query
OrderID | ProductName | Quantity | Price | Total ([Quantity]*[Price])
I want to group the orders based on the sum of total and sum of payments. I made another query as following :
OrderID (From order table) | Payment (from payments table) | Total (From Order Details Query )
at the Total field I set the above fields to
Group By, Sum and Sum respectively
I got true payments sum, however, the sum total are always duplicated. Any Help please ?
Note that the three objects (two tables and query ) have relation (type : one to many) by the order ID