Click here to Skip to main content
15,889,863 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: MDIParent confusion Pin
dan!sh 12-Nov-09 3:48
professional dan!sh 12-Nov-09 3:48 
AnswerRe: MDIParent confusion Pin
The Man from U.N.C.L.E.12-Nov-09 5:17
The Man from U.N.C.L.E.12-Nov-09 5:17 
AnswerRe: MDIParent confusion Pin
Shameel12-Nov-09 23:05
professionalShameel12-Nov-09 23:05 
QuestionCrystal Report Pin
magedhv12-Nov-09 2:06
magedhv12-Nov-09 2:06 
AnswerRe: Crystal Report Pin
Shameel12-Nov-09 23:06
professionalShameel12-Nov-09 23:06 
GeneralRe: Crystal Report Pin
magedhv14-Nov-09 21:42
magedhv14-Nov-09 21:42 
QuestionAdding Entries of Two columns in SQL database using VBasic. Pin
jeshra27911-Nov-09 23:48
jeshra27911-Nov-09 23:48 
AnswerRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Shameel12-Nov-09 0:07
professionalShameel12-Nov-09 0:07 
What are you trying to do here? You are reading an entire table, Looping through the rows and updating the entire table with the sum. This is absurd, since it will update the TotalPayments column of all rows with the sum of the last row. I believe what you are trying to acheive can be done using just one statment:


VB
cmd = New SqlCommand("UPDATE payments SET [Total Payment]= Payment1 + Payment2", con)

cmd.ExecuteNonQuery()

GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 0:58
jeshra27912-Nov-09 0:58 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 5:59
jeshra27912-Nov-09 5:59 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Shameel12-Nov-09 23:08
professionalShameel12-Nov-09 23:08 
AnswerRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Johan Hakkesteegt12-Nov-09 0:30
Johan Hakkesteegt12-Nov-09 0:30 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 0:58
jeshra27912-Nov-09 0:58 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Johan Hakkesteegt12-Nov-09 1:04
Johan Hakkesteegt12-Nov-09 1:04 
QuestionSorting Excel range of cells by column in VB Pin
nhsal6911-Nov-09 22:50
nhsal6911-Nov-09 22:50 
AnswerRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt11-Nov-09 23:41
Johan Hakkesteegt11-Nov-09 23:41 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 0:20
nhsal6912-Nov-09 0:20 
GeneralRe: Sorting Excel range of cells by column in VB [modified] Pin
Johan Hakkesteegt12-Nov-09 0:26
Johan Hakkesteegt12-Nov-09 0:26 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 1:05
nhsal6912-Nov-09 1:05 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 2:03
Johan Hakkesteegt12-Nov-09 2:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 3:16
Johan Hakkesteegt12-Nov-09 3:16 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Oakman12-Nov-09 16:03
Oakman12-Nov-09 16:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 20:18
Johan Hakkesteegt12-Nov-09 20:18 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6913-Nov-09 0:08
nhsal6913-Nov-09 0:08 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt13-Nov-09 3:14
Johan Hakkesteegt13-Nov-09 3:14 

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.