Rounding an average

Digger442

Registered User.
Local time
Today, 08:55
Joined
Dec 16, 2002
Messages
23
I am running a query that returns the minimum, maximum, and average mileage of a list of cars. I have set decimal places to zero in all places I can think of, but of course the average returns with a long decimal output. These figures are then displayed on a report.

How can I truncate the 'average' display so it rounds to show no decimals?

I have tried using Round([YourNumberFieldName],3) in the query but that doesn't seem to work.

The numbers are stored in a table as double numbers. Again the decimal places are set to 0.

Thanks.
 
Digger,

Try --> Round(Avg([YourNumberFieldName]),3)

You can also have the report format the value instead.

Wayne
 
Wayne,

Thanks! That worked perfect. Now all I have to do is glue my hair back in place!

Greatly Appreciated
 

Users who are viewing this thread

Back
Top Bottom