Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Try cmdBuilder = New SqlCommandBuilder(adapter) cmdBuilder.ConflictOption = ConflictOption.OverwriteChanges changes = ds.GetChanges() If changes IsNot Nothing Then adapter.Update(changes) adapter.AcceptChangesDuringUpdate = True adapter.AcceptChangesDuringFill = True End If MsgBox("Location Notes Updated") Catch ex As Exception MsgBox(ex.ToString) End Try changes.EndInit() connection.Close()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)