Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42312

VS 2008 Invalidoperationexception was unhandled

$
0
0
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

Viewing all articles
Browse latest Browse all 42312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>