elianeasmar
Well-known member
- Joined
- Oct 3, 2013
- Messages
- 76
- Programming Experience
- Beginner
Hello.
What am i missing?
I am getting this error:
On this line:
Dim dv As New DataView(_DataSet.Tables(0)) ' select deleted rows dv.RowStateFilter = DataViewRowState.Deleted For _irow As Long = 0 To dv.Table.Rows.Count - 1 ' if serial is null, that means the row is new and deleted ' so no need to add it to database If Not IsDBNull(dv!serial) Then Dim strconnection As String = "Data Source=EASMAR-PC;Initial Catalog=Database Connection;Integrated Security=True;" Dim _cn As SqlConnection = New SqlConnection(strconnection) _cn.Open() Dim cmd As New SqlCommand cmd.CommandText = "Delete from tblCustomer where serial= " & txtSerial.Text End If Next
What am i missing?
I am getting this error:
Conversion from String "serial" to type Integer is not valid [/FONT]
On this line:
If Not IsDBNull(dv!serial) Then