Article View: borland.public.delphi.database
Article #86Re: Master > Detail/Master > Detail with ADO
From: Helmut W�ss
Date: Mon, 09 Jun 2003 12:25
Date: Mon, 09 Jun 2003 12:25
45 lines
2789 bytes
2789 bytes
Hi Kris, i think this will not work because in the second step where the master is the People_IN_GroupsTBL there is only groupid in the actual record and so it will display only the details for this record. Better you make a doubleclick on your detail dataset component (People_IN_GroupsTBL) and then add a new field for the groupname. In the following dialog you can define it as a lookup field where the value comes from the GroupsTBL and the reference is groupID. So there should be one grid for selecting the actual person and in the second grid you see all groupids and groupnames together, no third grid needed. hth, Helmut "kris leech" <krisleech@email.com> schrieb im Newsbeitrag news:bc05su$h07$1@hercules.btinternet.com... > Hi all, > > I have three tables PersonTBL (PersonID), GroupsTBL(GroupID) and > People_IN_GroupsTBL(PersonID, GroupID) > To relate a Person to a Group I add a record in the People_IN_Groups table > with the PersonID and the GroupID of the Group they are related to. > > I have a form showing the People Table, but I want to display all the Groups > that Person is in also. To do this I have put PersonTBL as the Master to > People_IN_Groups, and People_IN_Groups the Master of Groups, so: > > People_IN_Groups shows only records for the PersonID of the the current > record of PersonTBL, > GroupsTBL showing only the Groups of the current record of People_IN_Groups. > > Now this does not quite work as I need to show all the Groups in > People_IN_Groups, not just the current record. How do I do this please? > > Many thanks. Kris. > > > >
Technical Details
Message-ID:
<3ee47c33$0$23764$91cee783@newsreader02.highway.telekom.at>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed01.univie.ac.at!newsfeed01.highway.telekom.at!newsreader02.highway.telekom.at!not-for-mailReferences:
<bc05su$h07$1@hercules.btinternet.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115d96,2e9a4ef88d2d6384 X-Google-Attributes: gid115d96,public X-Google-ArrivalTime: 2003-06-09 05:28:08 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed01.univie.ac.at!newsfeed01.highway.telekom.at!newsreader02.highway.telekom.at!not-for-mail From: "Helmut W�ss" <h.woess@iis-edv.at> Newsgroups: borland.public.delphi.database References: <bc05su$h07$1@hercules.btinternet.com> Subject: Re: Master > Detail/Master > Detail with ADO Date: Mon, 9 Jun 2003 14:25:36 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 47 Message-ID: <3ee47c33$0$23764$91cee783@newsreader02.highway.telekom.at> NNTP-Posting-Host: L1308P11.dipool.highway.telekom.at X-Trace: 1055161395 newsreader02.highway.telekom.at 23764 62.46.227.107