Click here to Skip to main content
16,004,828 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello Guys , plz help me out ..Me new to VB nd i hv 3 day left to submit my acedemic project.The problem is
there is this field in my database
Date|Partyname|Itemtype|Quantity|ItemPrice|TotalPrice|PaidPrice|BalancePrice|
8/30|abc      |handfree|10      | 10      | 100      |  90     | 10         |
8/30|xyz      |handfres|12      | 10      | 120      |  90     | 30         |


here the the user will enter all the valuse using textbox...
he will enter only date , Partyname , Itemtype , Quantity , base on itemprice nd quantity he hd enter the total price must be calculated automatically..(10*10=100)
Thn based on this total he price he will enter paidprice , nd if there is any balnce thn it will be automaticallu save in database (100-90=10 , or 100-100=0)

Me nt able to mange this code , plz help me out ..
plz make an demo project for me , so tht i can quickly get it md implement on my code..plzzz..help me out
Posted
Updated 30-Aug-12 0:27am
v2

SQL
Sujit where you are facing problem you aren't mention properly.
As per your question i can understand that there is a form where you can enter 5 field value and rest of the 2 ie total and balance amount will be calculated and updated in the database.
Do it step by step and you can solve it by yourself then you can learn the project from your end.
If you are using SQL then check how to write SQLconnection string; if Access check OLEDB connection.

Next write insert query inside submit button code. You may apply some trick like while entering quantity write textchanged event and the total amount will be calculated as per text change. Try some validation like while pressing key that should not be char when it is quantity or Item price.
While update paid price write update query so that you record will be updated.
Now come to the grid section.
After entering records that should be displayed on some container you may use grid.
lots of events are there.
Lets start if you are facing any problem share with us.
 
Share this answer
 
thnx..But me not able to calculate the total amount and balance amount ..

What i want is the user will search by name or by date ..based on this search result he will able to calculate the total amount of specific person..i dont knw how to tackle this problem...

Eg suppose he will sear for XYZ thn all the deatail of it will be showed in datagrid view , thn i want to add a two butto on it , one to calculate the total amount of tht person only and one for calculating balnce amount of tht person only ...me search a lot but cant get any solution ..plz provide me and demo application ...plz...only 2 days r left still lots to go...

If u do thn mail me on suju_26pro@ymail.com..
plzz..get me out of here....and thnx
 
Share this answer
 
i can solve ur problem.but firstly tell me which database u r using????
 
Share this answer
 
me using access 2003 as a database......thnx for ur kindness....waiting for demo eagerly....plz get me out of here
 
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