Im am new to access and querys so im probably doing something simple wrong but here is my problem
I have a query that sums up the amount of products that are allocated by customer Orders and another that sums up the Products that are allocated by pending Transfers to our trucks, so what im trying to do is add the 2 fields up from both queries in another query so I can have a total amount of products that are allocated. I can get the values of the two queries to show up properly in the query using "itemNumber" and "ProductName" from my "products" table and the summed value from the two queries but I cant get them to add together by using an addition expression to add the two value fields here is the SQL
SELECT Products.ItemNumber, Products.ProductName, qryAllocatedbyCustomerOrder.[Quantity Allocated by CO], qryAllocatedbyTransfer.[Quantity Allocated by Transfer], [Quantity Allocated by CO]+[Quantity Allocated by Transfer] AS Expr1
FROM (Products LEFT JOIN qryAllocatedbyCustomerOrder ON Products.ItemNumber = qryAllocatedbyCustomerOrder.ItemNumber) LEFT JOIN qryAllocatedbyTransfer ON Products.ItemNumber = qryAllocatedbyTransfer.ItemNumber;
any ideas why its not adding up?
I have a query that sums up the amount of products that are allocated by customer Orders and another that sums up the Products that are allocated by pending Transfers to our trucks, so what im trying to do is add the 2 fields up from both queries in another query so I can have a total amount of products that are allocated. I can get the values of the two queries to show up properly in the query using "itemNumber" and "ProductName" from my "products" table and the summed value from the two queries but I cant get them to add together by using an addition expression to add the two value fields here is the SQL
SELECT Products.ItemNumber, Products.ProductName, qryAllocatedbyCustomerOrder.[Quantity Allocated by CO], qryAllocatedbyTransfer.[Quantity Allocated by Transfer], [Quantity Allocated by CO]+[Quantity Allocated by Transfer] AS Expr1
FROM (Products LEFT JOIN qryAllocatedbyCustomerOrder ON Products.ItemNumber = qryAllocatedbyCustomerOrder.ItemNumber) LEFT JOIN qryAllocatedbyTransfer ON Products.ItemNumber = qryAllocatedbyTransfer.ItemNumber;
any ideas why its not adding up?