Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all, I have a ms access table data as bellow
slno stockid stock value
1 4062 120 10
2 4062 100 11
3 4062 300 13

I want to deduct the stock from this table using an input quantity.Some times quantity is more than the stock available in this row have to go to next column and it will deduct the stock in that row.please how to create the code in vb.The advantage of this method if I input 150 first it will deduct 120*10 and 30*11

Thanks
Posted
Comments
Sandeep Mewara 28-May-11 9:34am    
Tried anything?
Aous Abbas 8-Jun-11 19:32pm    
Hi, i think i need more information before i can help you

is this a windows form or an access form? if access then which version of access are you working in? if its a windows form then which Jet version are you using?

assuming your table/data is sorted by slno what happens to slno #1 after you take out the 120? does it go to zero? or do you delete the entire row?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900