PC Review


Reply
Thread Tools Rate Thread

Average time with a single entry

 
 
Alejandro
Guest
Posts: n/a
 
      1st Jun 2010
Hello there,

i have a form with a query that calculates the average processing time for a
event and it works fine when there's been more than one entry. I understand
that the average of a single time doesn't make much sense, but the user sees
BLANK in that field when there's only been one time saved in the database. Is
there a way to show the average time if count>2 and show the real time if
count=1?

Thanks!
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      1st Jun 2010
Post the SQL of your query.
--
Build a little, test a little.


"Alejandro" wrote:

> Hello there,
>
> i have a form with a query that calculates the average processing time for a
> event and it works fine when there's been more than one entry. I understand
> that the average of a single time doesn't make much sense, but the user sees
> BLANK in that field when there's only been one time saved in the database. Is
> there a way to show the average time if count>2 and show the real time if
> count=1?
>
> Thanks!

 
Reply With Quote
 
John Spencer
Guest
Posts: n/a
 
      2nd Jun 2010
Hard to say without seeing the query structure.

Are you getting the time from two different records? And if there is no
preceding record there is no time? Perhaps you can use the NZ function to
solve the problem by forcing zero when your calculation is showing blank.

Again, it is difficult to say without more information on the query. Can you
post the SQL statement of the query?

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Alejandro wrote:
> Hello there,
>
> i have a form with a query that calculates the average processing time for a
> event and it works fine when there's been more than one entry. I understand
> that the average of a single time doesn't make much sense, but the user sees
> BLANK in that field when there's only been one time saved in the database. Is
> there a way to show the average time if count>2 and show the real time if
> count=1?
>
> Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I time/date stamp an entry in a note from a calendar entry? Sweet Microsoft Outlook Calendar 1 2nd Apr 2010 07:33 PM
Calculate an Average of row entry fields =?Utf-8?B?RiBKb2xpdmV0dGU=?= Microsoft Access Queries 13 3rd Dec 2008 06:03 PM
average line needed from one single cell Norbert Microsoft Excel Charting 3 20th Nov 2008 02:04 PM
Average every third entry =?Utf-8?B?TG9zdHdpdGhvdXRMb3N0?= Microsoft Excel Misc 9 29th May 2008 07:12 PM
Userform for time entry: multiple controls/single value? smplogc Microsoft Excel Programming 3 28th Apr 2006 12:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:24 AM.