Correct your code like
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnUpdate.Click
Dim cb As New OleDb.OleDbCommandBuilder(da)
' Assign your command to data adapter
da.InsertCommand = cb.GetInsertCommand
da.UpdateCommand = cb.GetUpdateCommand
da.DeleteCommand = cb.GetDeleteCommand
'This statement force to change row state
ds.Tables("StudentContacts").Rows(inc).BeginEdit()
ds.Tables("StudentContacts").Rows(inc).Item(0) =
txtBoxStudentRef.Text
ds.Tables("StudentContacts").Rows(inc).Item(1) =
CmboBoxTitle.Text
ds.Tables("StudentContacts").Rows(inc).Item(2) =
txtBoxFullName.Text
ds.Tables("StudentContacts").Rows(inc).Item(3) =
dobpicker.Text
' I think your another error present here
ds.Tables("StudentContacts").Rows(inc).Item(4) =
CmboBoxGender.Text
'So replace the above code & insert the following code
If (CmboBoxGender.Text="Male") Then
ds.Tables("StudentContacts").Rows(inc).Item(4) =True
Else
ds.Tables("StudentContacts").Rows(inc).Item(4) =False
ds.Tables("StudentContacts").Rows(inc).Item(5) =
txtBoxAddress.Text
ds.Tables("StudentContacts").Rows(inc).Item(6) =
txtBoxAddress1.Text
ds.Tables("StudentContacts").Rows(inc).Item(7) =
txtBoxCity.Text
ds.Tables("StudentContacts").Rows(inc).Item(8) =
txtBoxPostcode.Text
ds.Tables("StudentContacts").Rows(inc).Item(9) =
txtBoxHmeNmber.Text
ds.Tables("StudentContacts").Rows(inc).Item(10) =
txtBoxMobNmber.Text
ds.Tables("StudentContacts").Rows(inc).Item(11) =
txtBoxEmail.Text
ds.Tables("StudentContacts").Rows(inc).Item(12) =
txtBoxCourseappfor.Text
ds.Tables("StudentContacts").Rows(inc).Item(13) =
cmboBoxFees.Text
ds.Tables("StudentContacts").Rows(inc).Item(14) =
cmboBoxEntrytest.Text
ds.Tables("StudentContacts").Rows(inc).Item(15) =
txtBoxNotes.Text
ds.Tables("StudentContacts").Rows(inc).EndEdit()
da.Update(ds, "StudentContacts")
End Sub
--
Regards
*******************
*C.Arun Kumar *
*******************