Hi all! I could use some advice on performing a find...
Namely, I have two related tables: a detail table that contains detail records, and a summary table that contains a calculated sum() based on an amount in the detail table.
(For other design considerations, I need to have the calculated sum() in a separate table.)
I would like to filter the detail records based on one of the attributes in the detail table so that the sum() in the summary table reflects a total amount only on the found set of detail records.
So, I created a script - here's a rough description of it:
Go to the summary layout
Find all records
Enter find mode
Set field detail.amount to the filter value
(The detail table is related to the summary table)
Perform find
After running this, the summary result reflects the total amount of all of the detail records, not the found set I was aiming for.
Any ideas would be really appreciated!
Thanks,
Sharon