No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have tried Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Try Me.BindingContext(DataSet11, "wtab").EndCurrentEdit() Me.OleDbDataAdapter1.Update(DataSet11) end sub AND ASLO TRIED Dim Row As DataRow Row = Me.DataSet11.Tables("wtab").NewRow() Row.Item(0) = TextBox1.Text Row.Item(1) = TextBox2.Text Row.Item(2) = TextBox3.Text Row.Item(3) = ComboBox1.Text Row.Item(4) = ComboBox2.Text Me.DataSet11.Tables("e").Rows.Add(Row) Me.OleDbDataAdapter1.Update(DataSet11, "wtab") BUT … |
|
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Try ''''''''''''''''''''''''''''''''''''''''''''' Me.BindingContext(Me.DataSet11, "wtab").EndCurrentEdit() Me.OleDbDataAdapter1.Update(Me.DataSet11, "wtab") Catch End Try End Sub Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Me.BindingContext(DataSet11, "wtab").AddNew() ''adding new record/row to the table MsgBox("Successfully Inserted") End Sub |