Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

calculating average time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ka - 30 Nov 2007 17:41 GMT
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
Douglas J. Steele - 30 Nov 2007 18:40 GMT
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.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hi,
>
[quoted text clipped - 18 lines]
>
> Ka
ka - 30 Nov 2007 19:43 GMT
ahh!!....Thank you!

:)
Signature

Ka

> As soon as you use Format, you've converted the value to a string, and
> strings can't be averaged.
[quoted text clipped - 23 lines]
> >
> > Ka
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.