Re: master detail with ADO recordsets
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Tue, 24 Jan 2006 19:29:20 -0600
>Currently I create Queries in the following way.
>
>//connection creation
>FDBConn := ADODB_TLB.CoConnection.Create;
>FDBConn.Open(ConnString, 'SYSTEM', 'MANAGER', adConnectUnspecified);
>
>//query creation
>FQry := ADODB_TLB.CoRecordset.Create;
>FQry.CursorLocation := adUseClient;
>FQry.Open(SQLText, FDBConn, adOpenDynamic, adLockOptimistic, adCmdText);
>ADOQuery1.Recordset := AdoInt._Recordset(FQryMaster);
>
>Then I use ADOQuery1 for editing, inserting, etc.
>
>If I want to establish master-detail relationship between two
>ADOQueries, created in the above manner by assigning recordsets, how
>should I be doing??
I would write code in the AfterScroll event of the master dataset to update the
detail dataset.
It would be easier to just use TadoDataset components from the start and let
Delphi handle the master/Detail relationship.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- master detail with ADO recordsets
- From: praveen jalem
- master detail with ADO recordsets
- Prev by Date: Re: UPDATE SQL for Excel - very slow - any suggestions?
- Next by Date: BOF or EOF error -MSAccess
- Previous by thread: master detail with ADO recordsets
- Next by thread: BOF or EOF error -MSAccess
- Index(es):