Subject | Re: [IBO] Re: TIBOQuery Master-Detail isn't working anymore |
---|---|
Author | Helen Borrie |
Post date | 2009-02-04T05:15:43Z |
At 09:42 AM 4/02/2009, you wrote:
Helen
>Update:Show the SQL for both the master set and the detail set. Not yards of code, please, just the SQL.
>
>// Q1 is Master (TIBOQuery) - dsQ1 the DataSource (TDataSource) of Q1
>// Q2 is Detail (TIBOQuery)
>
>Q2.DataSource := dsQ1;
>Q1.Open;
>Q2.Open;
>// == Master and detail are synchronized
>
>Q1.Next;
>// == Detail remains opened but with RecordCount = 0
>
>Q2.Close;
>Q2.Open;
>// == Detail gets synchronized with Master - RecordCount = 1
>
>As I said, just updated from 4.6 to 4.8.
>
>Any ideas?
Helen