Hi everyone
I am using a SQL database in my program
I made the database in SQl server management Studio and imported the data from a excel spreadsheet, everything went fine no errors
It works fine in my program, querys no problem,
untill I try to save after edit or enter any new data
Private Sub OfficersBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OfficersBindingNavigatorSaveItem.Click
Me.Validate()
Me.OfficersBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Officer10DataSet) (This line gives the error, Officer10 is the name of the database and Officers is the name of the table)
End Sub
(This is the error I get).....
Invalidoperationexception was unhandled
Update requires a valid UpdateCommand when passed DataRow collection with modified rows
Can anyone give me a idea what could be the problem
I am using a SQL database in my program
I made the database in SQl server management Studio and imported the data from a excel spreadsheet, everything went fine no errors
It works fine in my program, querys no problem,
untill I try to save after edit or enter any new data
Private Sub OfficersBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OfficersBindingNavigatorSaveItem.Click
Me.Validate()
Me.OfficersBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Officer10DataSet) (This line gives the error, Officer10 is the name of the database and Officers is the name of the table)
End Sub
(This is the error I get).....
Invalidoperationexception was unhandled
Update requires a valid UpdateCommand when passed DataRow collection with modified rows
Can anyone give me a idea what could be the problem