Hola
Estoy desarrollando un proyecto en Visual.net 2005 con access 2003. El problema que tengo es que al eliminar un registro este se elimina exitosamente, pero cuando lo reingreso inmediatamente y lo vuelvo a eliminar me sale el siguiente mensaje.
el codigo es el siguiente:
resp = MsgBox("¿Elimina línea " & Txtlinea.Text & "?", MsgBoxStyle.YesNo + MsgBoxStyle.Information, "Confirmación")
If resp = vbYes Then
Dim _DataRow As DataRow() = RecD.Tables("tabla").Select("numero=" & Trim(TxtNumero.Text) & " and linea=" & Trim(Txtlinea.Text))
If _DataRow.Length > 0 Then
_DataRow(0).Delete()
End If
If RecD.HasChanges Then
Try
RecTabla.Update(RecD.Tables("tabla"))
If Grilla.Rows > 2 Then
Grilla.RemoveItem(Grilla.RowSel)
Else
Grilla.Rows = 1
End If
Catch ex As Exception
MsgBox(ex.ToString.ToUpper)
End Try
End If
End if
Gracias por su ayuda