السلام عليكم
هذه أو مشاركه لي
سوأل لي ما العيب في هذا الكود:
Dim r2 As OleDb.OleDbDataReader
Try
Me.OleDbConnection1.Open()
' Me.OleDbDataAdapter1.Fill(BOdataset1.Book)
Me.OleDbInsertCommand1.CommandText = "insert into book values(" + Me.TextBox24.Text + "," + "'Me.TextBox23.Text'" + "," + "'Me.TextBox22.Text'" + "," + "' Me.TextBox21.Text'" + "," + " 'Me.TextBox20.Text' " + " ," + "' Me.TextBox19.Text'" + "," + "' Me.TextBox18.Text'" + "," + "' Me.TextBox17.Text' " + "," + " Me.TextBox16.Text " + "," + "' Me.TextBox15.Text' " + "," + "' Me.TextBox14.Text' " + "," + "' Me.TextBox7.Text'" + "," + " 'Me.ComboBox3.Text'" + ")'"
Catch
Me.OleDbDataAdapter1.InsertCommand.ExecuteReader()
Me.TextBox24.Text = ""
Me.TextBox23.Text = ""
Me.TextBox22.Text = ""
Me.TextBox21.Text = ""
Me.TextBox20.Text = ""
Me.TextBox19.Text = ""
Me.TextBox18.Text = ""
Me.TextBox17.Text = ""
Me.TextBox16.Text = ""
Me.TextBox15.Text = ""
Me.TextBox14.Text = ""
Me.TextBox7.Text = ""
Me.ComboBox3.Text = ""
Me.OleDbConnection1.Close()
End Tryحولت البحث فلم أجد شيء
علما أني أستخدم VB.NET2003 with MS ACCESS2003



