Access Function like Excel Mround function?

F

Faye

I need to round either up or down to the nearest quarter. Is there a
function in access that works like Mround in excel where I can pass it the
number and .25? Thanks for any insight!
 
J

John W. Vinson

I need to round either up or down to the nearest quarter. Is there a
function in access that works like Mround in excel where I can pass it the
number and .25? Thanks for any insight!

Not builtin but you can work out your own:

Round([number]*4, 0)/4.

should do it.
 
F

Faye

Thanks Karl...that worked perfectly!

KARL DEWEY said:
Try this --
To the quarter: Int(4*[Cost]+0.5)/4


Faye said:
I need to round either up or down to the nearest quarter. Is there a
function in access that works like Mround in excel where I can pass it the
number and .25? Thanks for any insight!
 

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