Click here to Skip to main content
15,886,788 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: help Pin
habdul11-Sep-12 15:49
habdul11-Sep-12 15:49 
AnswerRe: help Pin
Kenneth Haugland11-Sep-12 4:48
mvaKenneth Haugland11-Sep-12 4:48 
Questionprinter status Pin
wkalo8-Sep-12 1:22
wkalo8-Sep-12 1:22 
AnswerRe: printer status Pin
Eddy Vluggen8-Sep-12 4:52
professionalEddy Vluggen8-Sep-12 4:52 
GeneralRe: printer status Pin
wkalo8-Sep-12 20:45
wkalo8-Sep-12 20:45 
GeneralRe: printer status Pin
wkalo8-Sep-12 22:22
wkalo8-Sep-12 22:22 
GeneralRe: printer status Pin
Eddy Vluggen9-Sep-12 6:29
professionalEddy Vluggen9-Sep-12 6:29 
QuestionUpdate previous date data and then update the rest of the data Pin
garyu877-Sep-12 22:22
garyu877-Sep-12 22:22 
Hi everyone,

My update statement itself doesn't have problem but when I successfully updated the bank balance and wallet cash balance, I need those 2 value to be past to the next record's bank balance and wallet cash balance with auto Calcute with the existed enter data and saved.

For example:
Data1
Date:08/09/2012
{
Breakfast: 10
Lunch: 10
Sub: 20
}
{
Mortgage: 100
Instalment: 200
sub: 300
}
{
Total: 320
}
{
Wallet Cash: 1000 (1320-320)
}

Data2
Date:09/09/2012
{
Breakfast: 10
Lunch: 30
Sub: 20
}
{
Mortgage: 100
Instalment: 200
sub: 300
}
{
Total: 350
}
{
Wallet Cash: 650 (1000 - 350)


Let's say if I change data 1's breakfast to 90 then the sub will be 100 and the total is 400. Then 1320 - 400 = Walletcash(920). Then save.

After saving how to pass 920 to data 2's wallet cash = 920 - 350 = 570 and auto save to database. This should also be done with others data like 2 onwards till the last record.

I have coded the program to use textchange,gotfocus, and lostFocus to auto calculate when user change the textbox value. Is this way good/correct or should use sql to calculate for me.

So can some give me some ideas, example, pointer to my problem. My code is very long; so, I am reluctant to put here. If you need it tell me please.
AnswerRe: Update previous date data and then update the rest of the data Pin
David Mujica10-Sep-12 3:52
David Mujica10-Sep-12 3:52 
GeneralRe: Update previous date data and then update the rest of the data Pin
garyu8711-Sep-12 3:19
garyu8711-Sep-12 3:19 
GeneralRe: Update previous date data and then update the rest of the data Pin
David Mujica11-Sep-12 3:39
David Mujica11-Sep-12 3:39 
GeneralRe: Update previous date data and then update the rest of the data Pin
garyu8711-Sep-12 4:03
garyu8711-Sep-12 4:03 
Questionrelated dabase connectivity in vb6.0 Pin
sandy20506-Sep-12 18:28
sandy20506-Sep-12 18:28 
AnswerRe: related dabase connectivity in vb6.0 Pin
Eddy Vluggen6-Sep-12 18:36
professionalEddy Vluggen6-Sep-12 18:36 
QuestionVBA Script to update Active Directory Pin
DarrenAuchnie6-Sep-12 5:00
DarrenAuchnie6-Sep-12 5:00 
AnswerRe: VBA Script to update Active Directory Pin
Eddy Vluggen6-Sep-12 18:33
professionalEddy Vluggen6-Sep-12 18:33 
QuestionProblem With Datagridview Pin
sujuu6-Sep-12 0:39
sujuu6-Sep-12 0:39 
AnswerRe: Problem With Datagridview Pin
Eddy Vluggen6-Sep-12 18:31
professionalEddy Vluggen6-Sep-12 18:31 
Question.Net Control similar to Excel Text Wizard Pin
Member 77438055-Sep-12 14:54
Member 77438055-Sep-12 14:54 
AnswerRe: .Net Control similar to Excel Text Wizard Pin
Eddy Vluggen5-Sep-12 23:53
professionalEddy Vluggen5-Sep-12 23:53 
GeneralRe: .Net Control similar to Excel Text Wizard Pin
Member 77438056-Sep-12 2:32
Member 77438056-Sep-12 2:32 
GeneralRe: .Net Control similar to Excel Text Wizard Pin
Eddy Vluggen6-Sep-12 2:50
professionalEddy Vluggen6-Sep-12 2:50 
QuestionHow to Pass Parameter to Report Viewer ( vb.net 2010 ) ? Pin
sali224-Sep-12 20:58
sali224-Sep-12 20:58 
QuestionQuestion About this Function Pin
CHACAMAN3-Sep-12 11:30
CHACAMAN3-Sep-12 11:30 
AnswerRe: Question About this Function Pin
Dave Kreskowiak3-Sep-12 12:43
mveDave Kreskowiak3-Sep-12 12:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.