Re: Sum a time on a Rpt
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Wed, 21 Dec 2005 17:02:06 -0600
HOW DO I CREATE A SEARCH FORM???? wrote:
>i am trying that formula to sum all of the durations together in a report
>but unfortunately it is not working out for me, can u tell me what im doing
>wrong.
>
>What i did is i created a text box at the bottom of the report and plugged
>the following formula: =sum([total hours worked])
If the durations are in hours that should work, unless
[total hours worked] is the name of a text box. The
aggregate functions (Count, Sum, etc) only operate on
**fields** in the record source table/query, they are
unaware of **controls** on a form/report.
If [total hours worked] is a value that's calculated in the
report, then we will need to know what the original fields
contain and what calculation was done.
If the calculation is a simple expression, then you can use
Sum on the expression. E.g.
Sum(DateDiff("h", starttime, endtime)
--
Marsh
MVP [MS Access]
.
- Prev by Date: Re: Detail
- Next by Date: Re: Personal address database book
- Previous by thread: Re: Detail
- Next by thread: Re: Personal address database book
- Index(es):
Relevant Pages
|