OK, need help on this one. I have a form that basically has currency data in it (i.e. $34.76). What I want to do is round this off to ($35). Basically in a nutshell remove the cents. There is a Public Function that I believe can be called. Just don't know how to do it. Should I call this Function in my code? If so, how??? Below is the RoundCurrency function. How does one call it elsewhere?
Public Function RoundCurrency(ByVal strValue As String) As Currency
Dim strCurFix As String
'format will round these values and the string will remove what is left
strCurFix = Format(strValue, "Currency"
RoundCurrency = CCur(strCurFix)
End Function
Thanks!!! [sig][/sig]
Public Function RoundCurrency(ByVal strValue As String) As Currency
Dim strCurFix As String
'format will round these values and the string will remove what is left
strCurFix = Format(strValue, "Currency"
RoundCurrency = CCur(strCurFix)
End Function
Thanks!!! [sig][/sig]