|
-
Feb 10th, 2015, 11:45 AM
#1
Thread Starter
Fanatic Member
Exception thrown when saving record modifications to database.
I placed a binding navigator on a windows form that accesses an access table. Everything behaves as expected, except in the case of when I click the save button on the binding navigator. Below is the code for the event:
Private Sub TblDMPartBaseBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles TblDMPartBaseBindingNavigatorSaveItem.Click
Me.Validate()
Me.TblDMPartBaseBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me._MasterBase_02DataSet)
Me.Close()
End Sub
The line in italics, above, is where the break takes place and I get the following exception:
An unhandled exception of type 'System.InvalidOperationException' occurred in SiTechDocumentMaster.00.exe
Additional information: Update requires a valid UpdateCommand when passed DataRow collection with
I use the same code, except on a different table, in another project using this same dataset with no issues. I have looked in a lot of places and am unable to discern why this code does not work. Anyone have any ideas?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|