I retrieve a currency value from a database.
If the value is, say 34.50 , only the number 34.5 is shown.
I've tried ccur() and round(x,n) but that doesn't work.
Dim MyCurrency
MyCurrency = FormatCurrency(34.50)
' MyCurrency contains $34.50
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
I would jsut do this then
dim Mymsg
money = "34.5"
money = FormatNumber(money,2)
' 2 in the FormatNumber function = 2 decimal places
Mymsg = msgbox(money)
Or I found this and you can do it on the select in the SQL statement
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.