From: Alejandro on
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!
From: KARL DEWEY on
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!
From: John Spencer on
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!
 | 
Pages: 1
Prev: Union Query and Field Alias
Next: Inventory Loop