🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5435

Re: How to change master/detail in running time?

#5435
From: Mark Cashman
Date: Fri, 04 May 2001 02:03
30 lines
2073 bytes
Hi, Cesar!

In a TADOQuery, the convention is that the SQL statement contains a
parameter that is the same as the name of the join field from the data
set on the far end of the data source...

SELECT * FROM DETAILTHING WHERE ID = :cid

So long as the data set on the other end of the data source has a field
called "cid" it works. If not, you have to change the SQL property to
match - and as with the other situation, you must close the query before
making the change.

If you are using TADOTable, then just change the MasterFields property,
based on...

"MasterFields is a string containing one or more field names in the
master table. When the tables are related based on two fields, separate
field names with semicolons."

I hope that helps.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID: <3AF20DFC.2BB07C04@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3af0a55d$1_2@dnews> <3AF0BCF0.17D8D694@temporaldoorway.com> <3af0c1bf$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,12470dbc346bdc69
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-05-03 19:10:03 PST
Message-ID: <3AF20DFC.2BB07C04@temporaldoorway.com>
Date: Thu, 03 May 2001 22:03:40 -0400
From: Mark Cashman <mcashman@temporaldoorway.com>
Reply-To: mcashman@temporaldoorway.com
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: How to change master/detail in running time?
References: <3af0a55d$1_2@dnews> <3AF0BCF0.17D8D694@temporaldoorway.com> <3af0c1bf$1_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.14.197.193
X-Trace: dnews 988941753 24.14.197.193 (3 May 2001 19:02:33 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews