R
rita
i have a query that calculate total sold, total purchased and stock status ,
i want to make this query show only items that less than the reorder level i
written
this statment
<SELECT Products.ProductID, Products.[Product name], Products.Unit, (select
sum(UnitsSold) from OrderDetails where ProductID = Products.ProductID) AS
TotalSoldStock, (select sum(UnitsPurchased) from SuppliesDetials where
ProductID = Products.ProductID) AS TotalPurchasedStock,
([TotalPurchasedSTock]-[TotalSoldStock]) AS InStock, Products.[last
Purchasing price], Products.ReorderLevel,
IIf([InStock]<[ReorderLevel],"OrderNow") AS status
FROM Products
WHERE (((IIf([InStock]<[ReorderLevel],"OrderNow"))="OrderNow"));>
but its returns <enter prameter box> and not showing any result
plzzzzzz help
i want to make this query show only items that less than the reorder level i
written
this statment
<SELECT Products.ProductID, Products.[Product name], Products.Unit, (select
sum(UnitsSold) from OrderDetails where ProductID = Products.ProductID) AS
TotalSoldStock, (select sum(UnitsPurchased) from SuppliesDetials where
ProductID = Products.ProductID) AS TotalPurchasedStock,
([TotalPurchasedSTock]-[TotalSoldStock]) AS InStock, Products.[last
Purchasing price], Products.ReorderLevel,
IIf([InStock]<[ReorderLevel],"OrderNow") AS status
FROM Products
WHERE (((IIf([InStock]<[ReorderLevel],"OrderNow"))="OrderNow"));>
but its returns <enter prameter box> and not showing any result
plzzzzzz help