Re: Master / Detail Tables

From: Bill Todd (no_at_no.com)
Date: 09/21/04


Date: 21 Sep 2004 06:36:10 -0700

Set the DataSource property of the detail ADOQuery to the master's
DataSource. Make sure that the foreign key parameter in the detail
SELECT statement's WHERE clause has the same name as the primary key
field in the master. When you do this the detail query will be executed
automatically each time you change master records.

-- 
Bill (TeamB)
TeamB cannot answer questions received via email


Relevant Pages

  • Re: Master / Detail Tables
    ... > Set the DataSource property of the detail ADOQuery to the master's ... Make sure that the foreign key parameter in the detail ... > automatically each time you change master records. ... > TeamB cannot answer questions received via email ...
    (borland.public.delphi.database.ado)
  • Re: Master / detail with TADODataset?
    ... >Details.MasterFields to the nameof the Master fields. ... you use that match fields from the Dataset DATASOURCE property points to will ... Brian Bushay (TeamB) ... Prev by Date: ...
    (borland.public.delphi.database.ado)