Joejoe79sa
Member
- Joined
- Mar 24, 2007
- Messages
- 7
- Programming Experience
- Beginner
Hi guys, i have been strugling with this updating of records in a access database for a while now. I can update a microsoft SQL Database using this code... Me.Validate()
Me.StudentBindingSource.EndEdit()
Me.StudentTableAdapter.Update(Me.StudantDataSet.Student)
But this same code is generated when i drag and drop items from the data sources windows in my visual basic.net using a access database but i get this error:
System.InvalidOperationException was unhandled
Message="Update requires a valid UpdateCommand when passed DataRow collection with modified rows."
Source="System.Data"
This code s generated by visual basic but doesnt work. Any idee what i am to do next?
Thanks
Me.StudentBindingSource.EndEdit()
Me.StudentTableAdapter.Update(Me.StudantDataSet.Student)
But this same code is generated when i drag and drop items from the data sources windows in my visual basic.net using a access database but i get this error:
System.InvalidOperationException was unhandled
Message="Update requires a valid UpdateCommand when passed DataRow collection with modified rows."
Source="System.Data"
This code s generated by visual basic but doesnt work. Any idee what i am to do next?
Thanks