This code doesnt seem to be working for adding a new record:
Dim newcourse As Data.DataRow
newcourse = NewCourse1.Tables(0).NewRow
newcourse.Item("Name") = TextBox1.Text
NewCourse1.Tables(0).Rows.Add(newcourse)
NewCourse1.AcceptChanges()
OleDbDataAdapter1.Update(NewCourse1, "Course")
Why not?
TIA
Dim newcourse As Data.DataRow
newcourse = NewCourse1.Tables(0).NewRow
newcourse.Item("Name") = TextBox1.Text
NewCourse1.Tables(0).Rows.Add(newcourse)
NewCourse1.AcceptChanges()
OleDbDataAdapter1.Update(NewCourse1, "Course")
Why not?
TIA