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

Error: Child Has Multiple Tables

I have the following code where Build the relation on DataSet Schema I got
the error that Child Has Multiple Tables

DataTable LoData = new DataTable("LearningOutcomesDT");
DataTable LoDocData = new DataTable("LearningOutcomesDocDT");
da = new SqlDataAdapter(BuildSQLQuery(BookId,queryType.LOBo ok),oSql);
da.Fill(LoData);
ds.Tables.Add(LoData);

da = new SqlDataAdapter(BuildSQLQuery(BookId,queryType.LODo c),oSql);
da.Fill(LoDocData);
ds.Tables.Add(LoDocData);
DataRelation oLORelation =
ds.Relations.Add("ThesisLODocRelation",ds.Tables[0].Columns["ThesisID"],
ds.Tables["LearningOutcomesDT"].Columns["ThesisID"],false);
DataRelation oDocRelation =
ds.Relations.Add("ThesisLORelation",ds.Tables["LearningOutcomesDT"].Columns["LOID"],
ds.Tables["LearningOutcomesDocDT"].Columns["LOID"],false);
oDocRelation.Nested = true;//Error Occured When I added this line
oLORelation.Nested = true;

How can I solve this problem
Nov 12 '05 #1
0 985

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

Similar topics

13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
2
by: LEX | last post by:
Could not update; currently locked by another session on this machine. Can someone help me figure out why access gives me this error on some record's memo fields but not on others?
7
jinalpatel
by: jinalpatel | last post by:
I have 4 tables in SQL 2000. I linked them in MS ACCESS 2003. One of the table is parent table havinf personal information. The other table stores Licenses. One person can have multiple license. I...
1
by: mimranp | last post by:
Hi all i m using visual developer 2008 i m using xhtml1.1 in that .i m reciving so much error when check in online input w3 standard(C# language code behind) <%@ Page Language="C#"...
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...
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...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.