Hi Everyone
I would like to ask something regarding the calculated query for Instock field in a Inventory System see details below are the sample format field of my Inventory Transaction Table
Code:
Date TransactionType Company name ProducType ItemDescription Qty UOm Dim Unit PRice Total Amount RefNO Instock Remarks
My Inventory are based on the preset of Microsoft Access Inventory Management.
I have only three table InventoryTransaction, ProductDetails and Transaction Type and One query table known as Extended InventoryTransaction
So my Problem was the Instock field, I need to calculate the actual stock of the Item.See details below coding the Instock field
Code:
Instock: IIf([InventoryTransaction].[TransactionType]=[”Incoming”],[InventoryTransaction]![Qty],-([InventoryTransaction]![Qty]))
Translation of the code
The Transaction Type has a two records only which is the Incoming and Outgoing,
Incoming item are for the addition stock of the Item while the Outgoing is to decrease the stock of the Item so the purpose of the Instock field is to calculate the update stock,
The Instock field located at the Extended InventoryTransaction Query,whenever I open the this query . I encounter the First error, which
is a dialog box open and looking for "incoming" to enter the paramater value.
I just hit ok to go inside the table.
I really need your help guys
I need to finish this Inventory database even though I creating it from the scratch and thank you very much for replying my message.