473,651 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I update a multi-Table SQL Server Data Adapter in VB2003?

I am working on a VB2003 project that accesses a SQL Server database. The
first two forms (frmA, frmB) are almost identicle as far as the processes and
data access and updating. I've set it up so that they both use shared
functions to access and update the data but two their respective tables.
Neither form is open at the same time. I set up just one SqlDataAdapter that
has a mulit-table select that pulls in the entire database and uses just one
data set for the sake of simplification. frmA works as it is intended to.
frmb, using the same functions, will access the data and read it into a data
grid, but will not allow me to update. The errors that I get back seem to
suggest that it is trying to update frmA's table, (TblID = 0), not frmB's
table, (TblID = 11). I've added watches and breakpoints to step through and
monitor what is happening. All values are passed in as they should and seem
to point to where they need to, even right up untill it goes to update. Does
anyone have any suggestions on how to solve this problem?
Jul 22 '05 #1
0 1266

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3438
by: Ashish | last post by:
Hi, I am using PHP 4.2.3 and Sybase 12.0 I want to insert records in multiple tables in a database. I also want to use transactions so that I can rollback in case there was a problem. I tried the following code, but I can not figure out how to retrieve the "status" from the batch.
2
1669
by: Mike Rovner | last post by:
Hello, Please advise on multi-threaded list *append*: import time, random, thread aList = def main(): for i in range(10):
7
43985
by: Jan van Veldhuizen | last post by:
The UPDATE table FROM syntax is not supported by Oracle. I am looking for a syntax that is understood by both Oracle and SqlServer. Example: Table1: id name city city_id 1 john newyork null
2
296
by: noam_a_jacobs | last post by:
A Tech question for those smart cookies with update management experience. We use a product called EasyUpdate, from www.AutoUpdatePlus.com, to manage the updates of our app after it has been delivered to the client. From our perspective, it is great. We are now keen to purchase the company's main app, AutoUpdate+. The reason is that this app offers a more, such as silent updates, zip file delivery, customization of the dialog boxes and...
1
1965
by: Wolffang | last post by:
From: "Wolffang" <javid@techlite.co.uk> Subject: How to do a multiple select and update in a datagrid Date: 23 October 2004 21:28 Using Visual studio.net VB I have a datagrid that brings records from a stored procedure. Be selecting multiple datarows using a checkbox. All i want to do is update a field called 'Active' datatype bit from 0 to 1
3
983
by: Peter Wagner | last post by:
Hi I've made a program about 2 years ago. The main window is a ListView. The contents of the ListView is copied from a multiline TextBox. After the installation of the SP2 for WinXP Prof the CR/LF pairs are now visible. :-( I've not recompiled my solution, I've only updated WinXP Prof from SP1 to SP2.
12
1244
by: Peter Proost | last post by:
Hi group, I have been doing some reading on threading and updating the ui from a worker thread and I made this sample which works but I was wondering if it's the ok way to do it? Can I improve something? What's the best practise for updating multiple controls on my form for example 5 labels or so, just keep passing them to the constructor? Greetz, Peter
3
28626
by: jbutler8192 | last post by:
Hello. We have a multi-user Java application that can connect to either a UniVerse database or a DB2 database on an AS400 through JDBC. The program executes a SELECT ... FOR UPDATE statement. When connected to the UniVerse database, if a second user runs the program, at the point where the selection executes, the program waits on the lock until the first user's updates are committed. However, when connected to the DB2 database, in the...
4
1716
by: eBob.com | last post by:
In my class which contains the code for my worker thread I have ... Public MustInherit Class Base_Miner #Region " Delegates for accessing main UI form " Delegate Sub DelegAddProgressBar(ByVal uiform As Form1, ByRef si As MTCC02.Form1.SiteRunOpts, _ ByVal numitems As Integer) #End Region
11
3462
ollyb303
by: ollyb303 | last post by:
Hi, I have a problem with a multi-user db in Access 2000. The db is for logging calls to my company and will be used by up to 30 people, though currently around 10 are using it. I have split the db into front/back end and each user is using a local copy of the front end, connected to the back end via our network. It was all working fine when we tested it (across 2 different sites) and had no problems, but now, some new users are...
0
8357
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8803
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.