G
Guest
Hi
i am trying to insert a new row into one of my datatabels that i have in my dataset when a button is clicked. here is my code
Dim ClientInsRow As DataRow = dtClient.NewRo
ClientInsRow("Surname") = txtSurname.Tex
ClientInsRow("Forename") = txtForename.Tex
ClientInsRow("OrgName") = txtOrganisation.Tex
ClientInsRow("Address") = txtAddress.Tex
ClientInsRow("Postcode") = txtPostcode.Tex
ClientInsRow("PhoneNo") = txtPhoneNo.Tex
'Add the new record to the table by calling the Add method of the DataRowCollection object.
dtClient.Rows.Add(ClientInsRow
i keep getting a message stating that....
'name dtClient is not declared
what am i doin wrong? i have followed the example from the vb.net help files!
My dataset with 5 datatables and 4 datarelations is created in the form_Load event
Can anyone help me??
i am trying to insert a new row into one of my datatabels that i have in my dataset when a button is clicked. here is my code
Dim ClientInsRow As DataRow = dtClient.NewRo
ClientInsRow("Surname") = txtSurname.Tex
ClientInsRow("Forename") = txtForename.Tex
ClientInsRow("OrgName") = txtOrganisation.Tex
ClientInsRow("Address") = txtAddress.Tex
ClientInsRow("Postcode") = txtPostcode.Tex
ClientInsRow("PhoneNo") = txtPhoneNo.Tex
'Add the new record to the table by calling the Add method of the DataRowCollection object.
dtClient.Rows.Add(ClientInsRow
i keep getting a message stating that....
'name dtClient is not declared
what am i doin wrong? i have followed the example from the vb.net help files!
My dataset with 5 datatables and 4 datarelations is created in the form_Load event
Can anyone help me??