Subject | Re: [IBO] Locate and Master Detail |
---|---|
Author | Jason Wharton |
Post date | 2002-12-19T18:25Z |
Your request is confusing to me.
How do you expect to Edit a record if the dataset isn't opened?
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
How do you expect to Edit a record if the dataset isn't opened?
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
----- Original Message -----
From: <waynef@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, December 18, 2002 12:30 AM
Subject: [IBO] Locate and Master Detail
> I have two TIB_Queries
> set up in a Master Detail.
>
> I then do a locate on the master Query
> and if found
>
> I put the Master in Edit mode, then the detail in
> edit mode ( 1:1 relation ).
>
> My problem is that the Detail never goes into edit mode.
> so it seems I have to do a locate on that query as well
>
> Here are the details
>
> (1)
> qryAcc.prepare; // Open
> qryEnq.prepare; // Open
>
> (2)
> if qryAcc.Locate('ID', id, []) then
> begin
> qryAcc.Edit;
> qryEnq.Edit;
>
>
> I have noticed that if I do not use prepare but Open,,
> it works ...
>
> waht is the best way of doing this, I would hate to have to use
> 'OPEN'.
>
> Thanks
> Wayne.