good day,
i have a problem and i don't know what to do with it, so plz help i am breaking down here....
here is the query
the inner query works fine, when i want to SUM it, i get OVERFLOW.
what can i do?
thanks
i have a problem and i don't know what to do with it, so plz help i am breaking down here....
here is the query
Code:
SELECT Sum(QuantityFree) AS SumמתוךQuantityFree
FROM ( SELECT ItemsInOrder.itemName, Item.itemPrice, (ItemsInOrder.price-ItemsInOrder.DiscountGiven) AS PriceBeforeDiscount, PriceBeforeDiscount/Item.itemPrice AS QuantityOnPay, (ItemsInOrder.quantity-QuantityOnPay) AS QuantityFree, Item.itemID
FROM reports, Item INNER JOIN (ItemsInOrder INNER JOIN [Order] ON ItemsInOrder.orderID = Order.OrderID) ON Item.itemName = ItemsInOrder.itemName
WHERE (((Order.time)>[reports]![lastSummeryReport])));
what can i do?
thanks