I'm having problems with this function. For some reason it fails on the line:
My entire function:
Code:
strMerged = Mid(strTotal, 1, intPosition - 1) & Mid(strTotal, intPosition, 3)
My entire function:
Code:
Function RoundN(curTotal As Currency, N As Integer) As Currency
Dim strTotal As String
Dim intPosition As Integer
Dim strMerged As String
Dim curConverted As Currency
strTotal = CStr(curTotal)
intPosition = InStr(1, strTotal, ".")
strMerged = Mid(strTotal, 1, intPosition - 1) & Mid(strTotal, intPosition, 3)
curConverted = CCur(strMerged)
RoundN = curConverted
End Function