Click here to Skip to main content
15,891,703 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am building a inventory management system(Winforms C#), it contains billing. Data base has table "item" having fields such as item name, units, base price, Quantity and so on.

While bill generation i am adding items to it, containing similar fields as above. After bill generation i need to decrement the value of quantity field for items in database, that decrement value should be equal to the quantity of items added to bill generation. (This regarding stock management in inventory management)

Please help me to do this one and provide me coding samples.

Thanks in Advance
Posted
Updated 17-May-10 0:47am
v2
Comments
Sandeep Mewara 17-May-10 6:48am    
You need to try yourself first. Put some effort. Show us what you have done and post your specific issues. No codes until you do so.

What have you done / implemented so far?
 
Share this answer
 
You need to do some research. You can start by research how to get data from a database and then how to update it. Try these articles.[^]. When you have a more specific question please post a new question with detailed information about your problem, any error messages you are getting, and even a snippet of the code you are having trouble with.
 
Share this answer
 
Make a query and get the recordset that holds the field you have to increment/decrement, the change the field by assigning it its incremented/decremented value, and finally commit the changes to the recordset...
 
Share this answer
 

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