Update Qry always updates to Zero

sevenair

New member
Local time
Today, 08:57
Joined
Apr 4, 2005
Messages
6
Hey,
im trrying to build a stock control system for a small store, and im having a nightmare trying to gert the updatestock query to work. It is an update query, and it does update this, the only thing is, no matter how many i sell on a day, it always sets the InStock to Zero.

Basically, I have a Sale table, which records the ProductID, and Quantity. I also have a Stock table, with an InStock value. I want to take a SumOfSale and then a this to he InStock value in the Stock table.

I couldnt make a query to automatically update stock as I make a sale, so i thought I could just take a tally of how many i sell a day (sumofsalequantity), and then deduct this from the InStock at the end of the day, but this isnt working Sad

Does anyone know why it would reset the InStock to zero, regarless of how many is in stock?? r can you avise me on where to get help, ive tried everything, been reading all the manuals, and im at my witts end now

Any advice would e much much appreciated Smile
 
I think you'll find that the consensus at this forum is to not store the value at all, but rather do totals every time you need to know the value. So an explaination as to a fix for the way you're trying do it would get heckled and scorned :rolleyes:

:) Ken
 

Users who are viewing this thread

Back
Top Bottom