calculating average time

  • Thread starter Thread starter ka
  • Start date Start date
K

ka

Hi,

I have a query in which I am calculating time between 2 procedures with this
formula:

Time1: [Procedure1]/60 & Format([Procedure1] Mod 60," ")

I am trying to create a report with all the entries. At the bottom of my
report, in the page footer, I would like to be able to have the sum of all
the times, averages, min, max...etc.

Each time I use the formula
=Avg([Time1]) (or a similoar one for the others),

I always get no value and just an ERROR where the info is supposed to be...

Any suggestions?
Thanks in advance.

Ka
 
As soon as you use Format, you've converted the value to a string, and
strings can't be averaged.

Average Procedure1, and do that transformation on the average.
 
ahh!!....Thank you!

:)
--
Ka


Douglas J. Steele said:
As soon as you use Format, you've converted the value to a string, and
strings can't be averaged.

Average Procedure1, and do that transformation on the average.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


ka said:
Hi,

I have a query in which I am calculating time between 2 procedures with
this
formula:

Time1: [Procedure1]/60 & Format([Procedure1] Mod 60," ")

I am trying to create a report with all the entries. At the bottom of my
report, in the page footer, I would like to be able to have the sum of all
the times, averages, min, max...etc.

Each time I use the formula
=Avg([Time1]) (or a similoar one for the others),

I always get no value and just an ERROR where the info is supposed to
be...

Any suggestions?
Thanks in advance.

Ka
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top