473,320 Members | 1,719 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,320 software developers and data experts.

Purging Dataset

I have a DataSet that contains 6 tables. When I write to the first table, all goes well, and my database gets updated. When I start to reference the second table, I get an error message that a colomn from the send table is not part of the first table

Key portions of code follow

PipeData1.Clear(
OleQAOrderDbDataAdapter.Fill(PipeData1
drCurrent = tblWorkOrder.NewRo
drCurrent("WorkOrder") = Text3.Tex

drCurrent("QASpec") = Combo3.Tex
tblWorkOrder.Rows.Add(drCurrent
OleQAOrderDbDataAdapter.Update(PipeData1

PipeData1.Clear(
OleQALoadsDbDataAdapter.Fill(PipeData1
drCurrent("WorkOrder") = Text3.Tex
drCurrent("TrailerID") = Text16.Text (fails on this line. Note tat "WorkOrder" is a valid column from OleQAOrderDbDataAdapter

Any suggestions

(Thanks in advance

Leon Kemp
Nov 20 '05 #1
2 805
Cor
Hi Leon,

PipeData1.Clear()
OleQAOrderDbDataAdapter.Fill(PipeData1)


We cannot see this, but I get the idea PipeData1 is your dataset and not
your table.
So this could be
\\\
PipeData1.Tables("mytable1").Clear()
OleQAOrderDbDataAdapter.Fill(PipeData1, "Mytable1")
///
But just a guess?

Cor

Nov 20 '05 #2
Cor

You were correct in your assumption, PipeData is the Dataset. I will give this a shot

Thank

Leo

Nov 20 '05 #3

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

Similar topics

0
by: hd | last post by:
Are there any standard approaches used to purge records from database in merge replication senario ? We are using merge replication between two sql server 2000 databases. These databasess have...
3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
5
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
10
by: minapatel | last post by:
Hi, I am trying to purge cases using an sql cursor:- cursor all_cases is cursor all_cases is select c.id00_warehouse, c.id00_case_nbr, c.id00_status_flag, c.id00_dlm from phpick00...
13
Zerin
by: Zerin | last post by:
To all, Best regards.I have a problem.If anyone has any solution,please reply as soon as possible. Is aouto purging possible in Access? How can I get related codes? Zerin
3
by: bobdurie | last post by:
Hi, We have a Java application that runs against a variety of backends including Oracle and MSSql 2000 and 2005. Our application has a handful of active tables that are constantly being...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.