Click here to Skip to main content
16,005,697 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J19-Sep-09 22:32
Andy_L_J19-Sep-09 22:32 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27919-Sep-09 22:56
jeshra27919-Sep-09 22:56 
GeneralRe: Copy one Datagridview items into another Datagridview!! [modified] Pin
Andy_L_J19-Sep-09 23:26
Andy_L_J19-Sep-09 23:26 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27919-Sep-09 23:44
jeshra27919-Sep-09 23:44 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27920-Sep-09 0:40
jeshra27920-Sep-09 0:40 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J20-Sep-09 1:03
Andy_L_J20-Sep-09 1:03 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27920-Sep-09 1:34
jeshra27920-Sep-09 1:34 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J20-Sep-09 2:09
Andy_L_J20-Sep-09 2:09 
This looks very convoluted.

It seems that you select all the data from the table in the form load event and show it in a DataGridView. Then you have a sub: Sub final_client that returns a range of results according to a date variable but then attempt to call this sub in a sql satement WTF | :WTF: cmd = New SqlCommand("SELECT * FROM final_client) .

This code will write the final_client data back to your Access DB.

For Each dr As DataRow in myDataSet.Table("client_details").Rows
  Dim name As String = dr("Name").ToString
  Dim age As String = dr("Age").ToString

  Try
    con.Open
    cmd = New SqlCommand("INSERT final_client(Name, Age) " & _
                          "VALUES('" & name & "','" & age "')",con)
    cmd.ExecuteNonQuery
    con.Close()
  Catch ex As Exception
 ...
  End Catch

Next


I dont use Access databases, and I definitely dont use your architecture...

I cant help you any more. I think I will now kill myself Cry | :((

I don't speak Idiot - please talk slowly and clearly

I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury

Driven to the arms of Heineken by the wife

GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27920-Sep-09 3:24
jeshra27920-Sep-09 3:24 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J20-Sep-09 8:17
Andy_L_J20-Sep-09 8:17 
QuestionControling a popup from a WebBrowser object Pin
RachelSo19-Sep-09 16:19
RachelSo19-Sep-09 16:19 
AnswerRe: Controling a popup from a WebBrowser object Pin
Luc Pattyn19-Sep-09 16:37
sitebuilderLuc Pattyn19-Sep-09 16:37 
AnswerRe: Controling a popup from a WebBrowser object Pin
DaveAuld19-Sep-09 19:24
professionalDaveAuld19-Sep-09 19:24 
Questionhidden schema Pin
Ebube19-Sep-09 6:49
Ebube19-Sep-09 6:49 
AnswerRe: hidden schema Pin
dan!sh 19-Sep-09 7:48
professional dan!sh 19-Sep-09 7:48 
QuestionBackground worker cnacelation problem Pin
Gagan.2018-Sep-09 19:19
Gagan.2018-Sep-09 19:19 
AnswerRe: Background worker cnacelation problem Pin
Christian Graus18-Sep-09 19:21
protectorChristian Graus18-Sep-09 19:21 
GeneralRe: Background worker cnacelation problem Pin
Gagan.2018-Sep-09 19:31
Gagan.2018-Sep-09 19:31 
GeneralRe: Background worker cnacelation problem Pin
Christian Graus18-Sep-09 20:17
protectorChristian Graus18-Sep-09 20:17 
AnswerRe: Background worker cnacelation problem Pin
Luc Pattyn19-Sep-09 3:07
sitebuilderLuc Pattyn19-Sep-09 3:07 
AnswerRe: Background worker cnacelation problem Pin
Gagan.2019-Sep-09 4:28
Gagan.2019-Sep-09 4:28 
QuestionTought Screen keyboard kinda working help ? Pin
Bob Beaubien18-Sep-09 18:49
Bob Beaubien18-Sep-09 18:49 
AnswerRe: Tought Screen keyboard kinda working help ? Pin
Christian Graus18-Sep-09 19:17
protectorChristian Graus18-Sep-09 19:17 
QuestionDisplay employee record with image like treeview Pin
Pandey Vijay Kumar S.18-Sep-09 17:48
Pandey Vijay Kumar S.18-Sep-09 17:48 
AnswerRe: Display employee record with image like treeview Pin
Christian Graus18-Sep-09 19:18
protectorChristian Graus18-Sep-09 19:18 

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.