Hi Everyone,
Got this darn recurring situation that seems to rear it's ugly head every 2 or 3 years and I thought i'd finally take a moment to find out if there is a solution to it or if I once again have to find a work-around...
I have a one-to-many relationship setup between my parent "Invoice" file and the child which holds the detail line items. I'm using fox's report writer and have a "data-grouping" setup on "Region".
What I simply want to do is SUM a field that is in the Parent table (Invoice Amt Subject To Comm) and display it at the end of the data-group. The problem is that this field gets re-summed for every line item in that exists in the child table. FOR EXAMPLE:
PARENT FILE HOLDS:
Invoice Amt Subj To Comm
------- ----------------
0001 $500
Now, if the child file holds 3 items for this invoice, $500 gets multipled by 3.
I think i'll leave it at that since I have to believe that a good number of you know what i'm talking about. I hope at least!
Thanks for your help.
Jack.
For exampleam trying to total up a field in the parent table and display it as
Got this darn recurring situation that seems to rear it's ugly head every 2 or 3 years and I thought i'd finally take a moment to find out if there is a solution to it or if I once again have to find a work-around...
I have a one-to-many relationship setup between my parent "Invoice" file and the child which holds the detail line items. I'm using fox's report writer and have a "data-grouping" setup on "Region".
What I simply want to do is SUM a field that is in the Parent table (Invoice Amt Subject To Comm) and display it at the end of the data-group. The problem is that this field gets re-summed for every line item in that exists in the child table. FOR EXAMPLE:
PARENT FILE HOLDS:
Invoice Amt Subj To Comm
------- ----------------
0001 $500
Now, if the child file holds 3 items for this invoice, $500 gets multipled by 3.
I think i'll leave it at that since I have to believe that a good number of you know what i'm talking about. I hope at least!
Thanks for your help.
Jack.
For exampleam trying to total up a field in the parent table and display it as