Re: Calculating sums in layout with 3 databases
- From: Helpful Harry <helpful_harry@xxxxxxxxxxxxxxxx>
- Date: Sun, 28 Aug 2005 17:56:05 +1200
In article <1125205109.327805.210320@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
calder@xxxxxxx wrote:
> Can't remember how to do this and FM Help isn't helping. Thanks for
> you indulgence on this very basic query:
> This is database for a business. The layout in question draws from 3
> databases (Customers, Jobs, Mileage). The layout shows the customers,
> jobs, mileage, wages for a years' time. I want to have a totals of
> wages and mileage appear at the bottom of the layout. What sort of
> field am I creating, do I create it in the Customer or the Jobs or the
> Mileage database and in which part of the layout do I put it?
>
> thanks so much for your help.
That would depend on what you're trying to total (eg. the total of ALL
Mileage, the total of Mileage for each Customer, the total Mileage for
each Job, etc.).
But as a head-start hint, you can use the Sum function via a
relationship link to total all the related records.
eg.
Total Customer Milage {Calculation, Number Result, Unstored}
= Sum (Customer-MileageRelation::Mileage)
This field would be in the Customer file and can be put anywhere you
like on the layout (in the Body part).
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
.
- Follow-Ups:
- Re: Calculating sums in layout with 3 databases
- From: calder
- Re: Calculating sums in layout with 3 databases
- References:
- Calculating sums in layout with 3 databases
- From: calder
- Calculating sums in layout with 3 databases
- Prev by Date: Calculating sums in layout with 3 databases
- Next by Date: Re: "Continue" button to come out of preview needs to be clicked twice. Fix?
- Previous by thread: Calculating sums in layout with 3 databases
- Next by thread: Re: Calculating sums in layout with 3 databases
- Index(es):