Rounding up in report??

J

JNana

I have a report based upon a query. When I run the query, my column of
numbers is .01 cent short. I do not see how to change the query to round
up, so I went to properties in the report and made sure that the decimal
places were set to 2. It was originally auto. Neither auto or 2 decimal
places caused the system to round up.

Can you give me some guidance in setting the format, please?

JR
 
M

Marshall Barton

JNana said:
I have a report based upon a query. When I run the query, my column of
numbers is .01 cent short. I do not see how to change the query to round
up, so I went to properties in the report and made sure that the decimal
places were set to 2. It was originally auto. Neither auto or 2 decimal
places caused the system to round up.


Common mistake by non-mathematical people. The total is the
more correct value, while your pencil and paper calculation
is in error because you are not seeing the complete
individual numbers.

SInce most people don't care about real precision and just
want the numbers to be consistent, you can use the Round
function in the sum calculation. e.g. =Sum(Round(field,2))
 
J

JNana

Thanks for your response. However, I get an error as follows:

"The expression you entered contains invalid syntax."
My expression is: =Sum(Round(Essett Payment,2))

Did I misunderstand?
 
M

Marshall Barton

JNana said:
Thanks for your response. However, I get an error as follows:

"The expression you entered contains invalid syntax."
My expression is: =Sum(Round(Essett Payment,2))


That's because you are not following best practices by have
a space or any non-alphanumeric character except underscore
in you field's name. You should eliminate these oddities
and use "ordinary" names such as EssettPayment or even
Essett_Payment.

The workaround is to enclose the name in [ ]

=Sum(Round([Essett Paymen], 2))
 
J

JNana

Thank you
Marshall Barton said:
JNana said:
Thanks for your response. However, I get an error as follows:

"The expression you entered contains invalid syntax."
My expression is: =Sum(Round(Essett Payment,2))


That's because you are not following best practices by have
a space or any non-alphanumeric character except underscore
in you field's name. You should eliminate these oddities
and use "ordinary" names such as EssettPayment or even
Essett_Payment.

The workaround is to enclose the name in [ ]

=Sum(Round([Essett Paymen], 2))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top