how to calculate current stock (1 Viewer)

james7705

Registered User.
Local time
Today, 14:25
Joined
Aug 2, 2012
Messages
36
Hi
I have a query (Inventory Transactions Extended) in which i am trying to caculate current stock.
I have a form (Inventory Transactions Form) where i either add or remove Inventory Items.
I have used this statement to create a new field (Actual Quantity) to calculate current stock based on stock been added and removed:

Code:
Actual Quantity: IIf([Transaction Types].[Add/Remove]="Addition";[Inventory Transactions]![Quantity];-([Inventory Transactions]![Quantity]))

for some reason it does not work. It is not calculating current stock. If i remove stock it shows a negative amount based on the amount i removed, and when i add stock it shows a positive amount based on what i added

I have attached a sample.

View attachment Sample.accdb
 

jdraw

Super Moderator
Staff member
Local time
Today, 08:25
Joined
Jan 23, 2006
Messages
15,385
see this article by Allen Browne
 

Users who are viewing this thread

Top Bottom