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

Data Relation? Newbe question

I'm setting up a dataset using the GUI to have a Parent Data Table and a few
Child Data Tables.

I then have a form that uses that dataset, and I can fill the appropriate
datatables et. al., but I can't figure out how that parent/child
relationship gets enforced? It's a one to one relationship, and when I bind
a textedit to the child table row, it's not the row that matches the
relation with the parent table.

Pretend it's a Shirt

Parent Table Shirts:
Name: Polo Shirt
ColorCode: 3

Child Table Colors:
1 Red
2 Blue
3 Green
Instead of seeing "Green" on the edit form, I see "Red" as if the relation
hasn't been enforced. I'm sure I'm missing something obvious!


Feb 1 '07 #1
1 1453
I'm assuming you are using data binding?

You need to set the source of the child's field to the relation between the
two tables, not to the parent table or the child table. If you are using a
BindingSource, you need a separate one for the ChildTableColors.

Robin S.
--------------------------------
"Ginger Estherskip" <ba****@127.0.0.1wrote in message
news:eN**************@TK2MSFTNGP04.phx.gbl...
I'm setting up a dataset using the GUI to have a Parent Data Table and a
few Child Data Tables.

I then have a form that uses that dataset, and I can fill the appropriate
datatables et. al., but I can't figure out how that parent/child
relationship gets enforced? It's a one to one relationship, and when I
bind a textedit to the child table row, it's not the row that matches the
relation with the parent table.

Pretend it's a Shirt

Parent Table Shirts:
Name: Polo Shirt
ColorCode: 3

Child Table Colors:
1 Red
2 Blue
3 Green
Instead of seeing "Green" on the edit form, I see "Red" as if the
relation hasn't been enforced. I'm sure I'm missing something obvious!


Feb 1 '07 #2

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

Similar topics

4
by: Frustrated Newbe | last post by:
Hi, I would appreciate your opinion on the following issue. Suppose there is a windows (not web!) application that uses the data stored on an SQL server. There can be more than one concurrent...
4
by: teddysnips | last post by:
This is a rather abstract question about data design, but I ask it here because a) the database is SQL Server, and b) you're such a learned bunch! Let's assume the classic relation of Customers...
9
by: Yaro | last post by:
Hello DB2/NT 8.1.3 Sorry for stupid questions. I am newbe in DB2. 1. How can I read *.sql script (with table and function definitions) into a database? Tool, command... 2. In Project Center...
11
by: deko | last post by:
If I release a new version of my mbd (in mde format) and users want to upgrade - how do they migrate their data? For example, if the original was released as data1.mde and then I release...
0
by: Joe Van Meer | last post by:
Hi all, I have a question regarding data relations within a data set. Say I have 3 tables named CLIENT, BOOKING and EMPLOYEE and I wanted to relate the first two tables (CLIENT AND BOOKING)...
1
by: Jim | last post by:
I have created a windows form that contains several tab pages which contain a panels. On a tab page I am trying to dynamically create a series of buttons in that pages panel. I am failing because...
6
by: Peter W Johnson | last post by:
Hi Guys, I am trying to display a datagrid containing two related datasets. I have filled and related them on MemberID with the following code:- Dim myconnection As Odbc.OdbcConnection
5
by: sutphinwb | last post by:
Hi - This could be a simple question. When I relate two tables in a datasetet, how do I get that relation to show up in a GridView? The only way I've done it, is to create a separate table in the...
17
by: Eric_Dexter | last post by:
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("</CsInstruments>") pattern1 = re.compile("</") orcfilename = filename + "orc" for line in alllines: if not...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.