| | |
TableAdapter Update Method
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
Hi guys, I have got a button to update and save data changes.
When I did not make any changes, I will have a successful update.
When I made changes, it will be give me this error
Without Try statements)
Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
The below is my codings. Anyone have suggestions? Thanks.:eek:
When I did not make any changes, I will have a successful update.
When I made changes, it will be give me this error
Without Try statements)Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
The below is my codings. Anyone have suggestions? Thanks.:eek:
If Me.Validate Then
Try
Me.CanDrinksBindingSource.EndEdit()
Me.CanDrinksTableAdapter.Update(Me.StockDataSet.CanDrinks) 'Update method
MessageBox.Show("Update Successful!")
Catch ex As Exception
MessageBox.Show("Update failed")
End Try
End If ![]() |
Similar Threads
- data adapter update method won't work (VB.NET)
- oleDbCommand - Update (ASP.NET)
- Need help debugging program (Java)
- Making a ball move down and up in an Applet (Java)
- Help With Datagrid RE: Creating and Saving DropDownList ReportsToID (C#)
- RDS Issue in Internet Explorer (ASP)
- Windows Hotfixes (Windows NT / 2000 / XP)
Other Threads in the VB.NET Forum
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code combobox component convert crystalreport data database datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output passingparameters picturebox picturebox1 plugin port print printing problem problemwithinstallation project remove save searchbox searchvb.net select serial server shutdown soap sorting survey table tcp temperature text textbox timer toolbox trim update updown user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





