Re: Sum of calculated fields
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Wed, 27 Jul 2005 11:05:11 -0500
Chris B via AccessMonster.com wrote:
>I have a database in to which start date/time and end date/time is entered,
>from this I have calculated fields which calculate the timeDiff, also another
>which calculates the time from a Midnight reference.
>A rate is entered and this calculates the amount of money due.
>This is all working perfectly, the problem is when I try to sum the
>calculated fields, I keep getting #ERRORs,
>I have tried to place the Sum() in both form footer as well as the report
>footer, I too have tried by placing the complete expression into the Sum
>(expression).
>Where else can I put the Sum(), I dont mind if its only ever displayed once
>the report is generated.
>I have read other threads and have tried by changing the Running sum property
>of my Sum text box to Over group and tried Over All, still no avail.
You are not very clear about what you are doing here. You
mention both a form footer and a report footer. While Sum
works the same in both situations, the RunningSum property
is only available in reports.
We need to know the names of the record source fields, the
calculated values and the related expression used to
calculate each value.
A rule you may (or may not) be violating is that the
aggregate functions (Count, Sum, etc) only operate on fields
in the form/report's record source table/query. They are
not aware of controls within the form/report. I suspect
that this is the cause of the #Error you are seeing.
--
Marsh
MVP [MS Access]
.
- Follow-Ups:
- Re: Sum of calculated fields
- From: Chris B via AccessMonster.com
- Re: Sum of calculated fields
- References:
- Sum of calculated fields
- From: Chris B via AccessMonster.com
- Sum of calculated fields
- Prev by Date: continuous forms from a query
- Next by Date: Re: Combo Box - Adding an item to the existing List
- Previous by thread: Sum of calculated fields
- Next by thread: Re: Sum of calculated fields
- Index(es):
Relevant Pages
|
Loading