System.Data.OleDb.OleDbException: 'No value given for one or more required parameters.'System.Data.OleDb.OleDbException: 'No value given for one or mo

  • Thread starter Thread starter nilebra27
  • Start date Start date
N

nilebra27

Guest
What would cause this error while attempting to save edits to a datagridview to an access database? I believe I've narrowed it down to the update function in the 5th row but still don't know the next step.

Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
'Saves the most updated version of data grid view to the access database
On Error GoTo SaveErr
APCompSciOnlineBookBindingSource.EndEdit()
Me.AP_Comp_Sci_Online_BookTableAdapter.Update(Me.FBLA_DatabaseDataSet.AP_Comp_Sci_Online_Book)
MessageBox.Show("The latest data has been saved")

'activates in event of error
SaveErr:
Exit Sub


End Sub

Continue reading...
 
Back
Top