473,394 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Updating table data

5
I am a novice so be patient with me. I started a simple form and dragged the datasource onto the form and VB created everything nicely including the navigation bar. The problem is that the save button has no code behind it to update the sql database. Using the code on the msdn site shows an error, so I modified it as follows. It shows no errors but fails when run.
Expand|Select|Wrap|Line Numbers
  1.         Try
  2.             Me.Validate()
  3.             Me.OTQ_CUST_UNITBindingSource.EndEdit()
  4.             Me.TableAdapterManager.UpdateAll(VM_Sandbox2DataSet)
  5.             MsgBox("Update successful")
  6.             OTQ_CUST_UNITBindingNavigatorSaveItem.Enabled = False
  7.         Catch ex As Exception
  8.             MsgBox("Update failed")
  9.         End Try
  10.  
Any insights would be appreciated.
Jan 20 '14 #1
0 925

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Simon | last post by:
Hi, Can anybody tell me if it is possible to return a table data type (as opposed to a temporary table) from a stored procedure. I am currently studying for 70-229 using the Thomas Moore book...
2
by: harry | last post by:
Hi All ! I open a table in Query Analyzer by right clicking on it and selecting 'Open' and when the data is displayed in the view pane I would like to be able to edit it. It seems however that...
2
by: ssb | last post by:
Hello, Am interested in knowing, how MS-access stores data internally... When I create a table and load records into it, I dont find any "data file" being created that possibles stores my...
1
by: stabbert | last post by:
We are on DB2 UDB 8.2.2 on AIX. I know this question has been asked many times on the ng but I am just not finding a real good answer. I need to be able to not only determine existing table data...
2
by: News East | last post by:
I have an existing SQL 7 server named HHARBR. HHARBR has a database named SPR with a table named "reportname" in it, the table has the name HHARBR embedded the table data. I migrated the HHARBR...
4
by: Jan | last post by:
Have an SQL create/import script. Running this on SQL would make it create a table with some values. Can Access2003 somehow use such and SQL script? I went into SQL query view to try it out, but...
1
by: =?Utf-8?B?RG9hbiBOZ3V5ZW4=?= | last post by:
My application is written in VB.NET 2005 to display a table of a SQL 2005 in a datagrid. I want to be notified or capture events when table data changed (inserted, deleted, updated by another user)...
2
idsanjeev
by: idsanjeev | last post by:
hello guys how can fixed the table data which display if the word can not be completed in fixed table column then bareak it in new line not expend the column width like when using this table...
0
by: neweldho982 | last post by:
Hello Thanks a lot for your help. Our DS people would like to remove the table data by calling a function (can be any other objects as well) in a SELECT query. SELECT...
1
by: vishakha | last post by:
Hi.. I m using sql server standard edition. I want to copy table data of 's1' from 'test1.dbo' into another table 's2' which is exist in another database 'test2.dbo'. I m using import option to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.