Round Up in Forms and Reports

  • Thread starter mattc66 via AccessMonster.com
  • Start date
M

mattc66 via AccessMonster.com

I need to round up on my forms and reports.

Example 20.635 needs to be 20.64

301.125 round up to 301.13.

What do I need in my formula?

Matt
 
J

John W. Vinson

I need to round up on my forms and reports.

Example 20.635 needs to be 20.64

301.125 round up to 301.13.

What do I need in my formula?

Matt

There's a sneaky trick for rounding up: use the Int() function which rounds
down, but do it on the negative of the number. That is, Int(3.5) rounds to 3,
but Int(-3.5) rounds to -4.

To round up to the nearest two decimals, use

-Int(-100 * [field]) / 100.

This will take 20.635 and change it to -2063.5; The Int will take that to
-2064; dividing by 100 and negating will take it to the desired 20.64.
 

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

Similar Threads

News CES 2019 round up 6
round function? 2
Round number subject to it's value 1
Round Function 5
Round formula 1
managing time in access 2
Access 2002 help please ! 2
Formula help 1

Top