Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a Round function

Status
Not open for further replies.

ibvma

Programmer
Jun 24, 2002
5
US
This should be an easy one.

Is there a function that will round a dollar figure to the nearest $100. I know there is one in Excel but I need one to work in an Access form.

thanks in advance
 
Yes.

Round(2.25,1) would round 2.25 to one decimal place.


Try: Round([yourfield],0) J. Jones
jjones@cybrtyme.com
 
Function DnRound(Number As Double, decimals As Integer) As Double
DnRound = Int(Number * 10 ^ decimals + 0.5) / 10 ^ decimals
End Function

DnRound(449, -2) = 400
DnRound(450, -2) = 500

Is that what you need?

Dan
[pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top