Rounding

  • Thread starter Thread starter J
  • Start date Start date
J

J

I was wondering what I would need to do in order to get a field in a
table to round down to the closest 1/2 percent. I would like to have
it so that if I have a number like 25.4 that it would go to 25 or if I
had 25.8 that It would round down to 25.5.
 
I was wondering what I would need to do in order to get a field in a
table to round down to the closest 1/2 percent. I would like to have
it so that if I have a number like 25.4 that it would go to 25 or if I
had 25.8 that It would round down to 25.5.

To round down, use

CInt(200 * [fieldname]) / 200

and format the result as Percent. I'm assuming that you're actually
storing 0.254 and formatting it as percent...

John W. Vinson[MVP]
 

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

Back
Top