I have a table in which information for an inventory is stored. There are many part numbers and different quantities received and exported for each. I have also created a form from which you can view information on each inventory entry, and what I would like to do is have a display on the form of a total sum received minus the total sum exported.
So, for example,
Part #------Quantity in-----Quantity Out (if any)
A-----------5--------------0
A-----------8--------------2
A-----------1--------------0
So if you looked up a part A, it would show you:
A - [Total Quantity Remaining]
And the total quantity remaining would be the sum of the quantities in (5+8+1=14) minus the sum of the quantities out (0+2+0=2) for a total of 14-2=12.
It would ONLY add the parts for the one displayed, though. So if there were Part Bs mixed into the example, it wouldn't add those up.
Any help is muchly appreciated!!
So, for example,
Part #------Quantity in-----Quantity Out (if any)
A-----------5--------------0
A-----------8--------------2
A-----------1--------------0
So if you looked up a part A, it would show you:
A - [Total Quantity Remaining]
And the total quantity remaining would be the sum of the quantities in (5+8+1=14) minus the sum of the quantities out (0+2+0=2) for a total of 14-2=12.
It would ONLY add the parts for the one displayed, though. So if there were Part Bs mixed into the example, it wouldn't add those up.
Any help is muchly appreciated!!