Hi everyone,
Does anyone know what is the problem in the following code? OleDbDataAdapter cannot update the datasource, and I cannot understand what the problem is.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim a As Integer
OleDbConnection1.Open()
DataSet11.tbl_master.Addtbl_masterRow(TextBox1.Text, TextBox2.Text, TextBox3.Text)
DataSet11.GetChanges()
a = OleDbDataAdapter1.Update(DataSet11)
DataSet11.AcceptChanges()
OleDbConnection1.Close()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
OleDbDataAdapter1.Fill(DataSet11)
End Sub
Any help uppreciated
2007-01-31
20:31:54
·
2 answers
·
asked by
Ziyoda
1
in
Programming & Design