Aug 23, 2002 #1 ibvma Programmer Joined Jun 24, 2002 Messages 5 Location 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
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
Aug 23, 2002 #2 jjonesal Programmer Joined May 10, 2001 Messages 277 Location US Yes. Round(2.25,1) would round 2.25 to one decimal place. Try: Round([yourfield],0) J. Jones jjones@cybrtyme.com Upvote 0 Downvote
Yes. Round(2.25,1) would round 2.25 to one decimal place. Try: Round([yourfield],0) J. Jones jjones@cybrtyme.com
Aug 26, 2002 #3 danvlas Programmer Joined Jul 30, 2002 Messages 2,446 Location RO 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 Upvote 0 Downvote
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