View Single Post
  #3  
Old June 2nd, 2010, 01:38 AM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default Average time with a single entry

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 count2 and show the real time if
count=1?

Thanks!