Re:Calculated Totals of Calculated Totals
In article <6degis$ft...@forums.borland.com>,
"Bill Todd (TeamB)" <bill_todd.nos...@compuserv.com> wrote:
Quote
>Be very careful of the fact that a master table's OnCalcFields event fires _before_ the link to
>the detail table is updated. Therefore, if you try to create a calculated field
>for the master that scans the detail to sum a value you must use a second
>TTable and call SetRange to see the correct set of detail records.
I am only using the calculated fields in the master and detail table to perform calculations on
fields within the same table. I have three tables linked: master-detail-subdetail, and I am using
after post and after delete events to update the calculated totals in the two detail tables. The
subdetail table updates a total in the detail table ok, but I have been having problems with
getting the detail to total and update the master. Something somewhere is causing a post event in
the detail table during the update which causes a table already locked by session error.
Warren.