Rounding Problems

S

scott vess

Hi

I am building a query. In the query I have fields that are
multipling numbers together and coming out with long
decimal point answers. I then have it formatted to to
round to two decimal places.

My final field is a calculation to add all the other fields
together. My problem is that when it adds the fields
together it uses the long stored number and not the rounded
number and when you get your answer it does not add up to
the rounded numbers. It is off pennies.

Does anyone know how to fix this problem
Thanks

Scott
 
G

Guest

Scott:

I was having the same problem with supposed "over
accuracy" on computed columns for variables in my queries.
Simply use the Round function such that A=B*C and D=F*G
and then H=D/A use Round H:([D],2)/Round([A],2). Of cource
[D] and [A] are column or fields but usually computed
values in the query.

Jeff
 

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