P
Prescott
I am trying to get my query to only show results for the most recent
inventory of each item and I keep getting unfathomable errors. Any
suggestions?
SELECT MasterList.Material, MasterList.Size, MasterList.Reliablecode,
MasterList.Critinventory, MasterList.MiniInv, partdesc.inhousedesc,
[Inventory List].inventoryidnumber, [Inventory List].invdate, [Inventory
List].itemidnumber, [Inventory List].inventoryamount
FROM (MasterList INNER JOIN [Inventory List] ON MasterList.ID = [Inventory
List].itemidnumber) AS INV1
WHERE [Inventory List].invdate = SELECT MAX( [Inventory List].invdate
FROM (MasterList INNER JOIN [Inventory List] ON MasterList.ID = [Inventory
List].itemidnumber) AS INV2
WHERE INV2.[Inventory List].invdate = INV1.[Inventory List].invdate);
INNER JOIN partdesc ON MasterList.ID = partdesc.partidnumber
ORDER BY [Inventory List].inventoryidnumber;
inventory of each item and I keep getting unfathomable errors. Any
suggestions?
SELECT MasterList.Material, MasterList.Size, MasterList.Reliablecode,
MasterList.Critinventory, MasterList.MiniInv, partdesc.inhousedesc,
[Inventory List].inventoryidnumber, [Inventory List].invdate, [Inventory
List].itemidnumber, [Inventory List].inventoryamount
FROM (MasterList INNER JOIN [Inventory List] ON MasterList.ID = [Inventory
List].itemidnumber) AS INV1
WHERE [Inventory List].invdate = SELECT MAX( [Inventory List].invdate
FROM (MasterList INNER JOIN [Inventory List] ON MasterList.ID = [Inventory
List].itemidnumber) AS INV2
WHERE INV2.[Inventory List].invdate = INV1.[Inventory List].invdate);
INNER JOIN partdesc ON MasterList.ID = partdesc.partidnumber
ORDER BY [Inventory List].inventoryidnumber;