Increment/Decrement

goldstar19821982

Registered User.
Local time
Today, 08:14
Joined
Feb 17, 2008
Messages
78
Im trying to edit stock levels. What is the best way for the difference to be calculated?

What i currently have is when an item is added, this saves within a transaction table. so the item details are stored and the quantity selected is stored. So when the quantity is wanting to be edited, and the quantiy is changed the difference should be worked out from when it was originally added to what the new quantity selected is. And the difference should add back into the items table to the stock.

So for example.

Item: drill is selected with a quantity of 10 and the amount in stock is 20. This will add into the listbox and new transactionline will be added to the table with the item and the quantity of 10.

When edited to say quantity 5. This should work out the difference, in this case 5 and add the other 5 back into the item table stock. I want it increment or decrement the difference in values.

Any help or sample solutions:mad would be much appreciated. Im losing my hair on this one....
 
Re-explain the business problem with fewer words. I don't get it.

You might also look for an example inventory system in the samples forum.
 
well basically,

All i want to happen is when an items quantity is edited, i want it to work out the difference at have this diff added back onto the stock levels within the items table
 
I take it you will only be editing items quantities from an Access based form?

You might want to look at one of the many fine sample databases in the sample forum. Look for an inventory system sample.
 
Good question....

Ive been stuck on it ever since, i just cant get it going....

Im not sure how to increment or decrement the difference and it is doing my head in...
 
Good question....

Ive been stuck on it ever since, i just cant get it going....

Im not sure how to increment or decrement the difference and it is doing my head in...

Have you tried searching these forums for "Inventory" and checked the sample DBs
 
I have, all i could find is a FIFO inventory system

I cant seem to find anything else...
 

Users who are viewing this thread

Back
Top Bottom