Thx all, maybe someone has better eyes than I do. I am receiving a syntax error in FROM clause statements for this SQL statement,
Code:
SELECT qry.SelectionRowID_FK, Sum(qry.QtyToSell) AS Qty, ItemsTABLE.StoreDepartment
FROM (SELECT ProductInventoryTABLE.SelectionRowID_FK, ProductInventoryTABLE.QtyToSell
FROM ProductInventoryTABLE
WHERE [SelectionRowID_FK]= GET_SelectionID()
UNION
SELECT qry.SelectionRowID_FK, Sum(qry.QtyToSell) AS Qty, ItemsTABLE.StoreDepartment
FROM (SELECT CustomInventoryTABLE.SelectionRowID_FK, CustomInventoryTABLE.QtyToSell
FROM CustomInventoryTABLE
WHERE [SelectionRowID_FK]= GET_SelectionID()
) AS qry INNER JOIN ItemsTable ON qry.SelectionRowID_FK = ItemsTable.SelectionRowID
GROUP BY qry.SelectionRowID_FK, ItemsTABLE.StoreDepartment