C
Chris Thunell
I am looping through a bunch of records in 1 database and putting them into
an ado.net datatable
I get a key violation when i try to add a record... so what i'm trying to do
if that happens, is skip that record and move on to the next record... I
haven't quite figured out the Try / Catch scenario. Here is my code:
Try
Me.DataSet11.tblContact.Rows.Add(myNewRow)
Catch ex As Exception
Me.DataSet11.tblContact.Rows.Remove(myNewRow)
GoTo NextRecord
End Try
This code does not work. Any thoughts would be greatly appreciated!
Chris Thunell
(e-mail address removed)
an ado.net datatable
I get a key violation when i try to add a record... so what i'm trying to do
if that happens, is skip that record and move on to the next record... I
haven't quite figured out the Try / Catch scenario. Here is my code:
Try
Me.DataSet11.tblContact.Rows.Add(myNewRow)
Catch ex As Exception
Me.DataSet11.tblContact.Rows.Remove(myNewRow)
GoTo NextRecord
End Try
This code does not work. Any thoughts would be greatly appreciated!
Chris Thunell
(e-mail address removed)