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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting "Currency" in VB module

Status
Not open for further replies.

kjclark

Technical User
Feb 25, 2002
36
US
How do you get rid of the decimal places when using the "Currency" format?

Here is the line:
lbldifferenceAR.Caption = Format$([SumOfSumOfAR] - LastAR, "Currency")

But since it's standard formatting, I get the 0.00 decimals when I want the rounded number without decimals. I tried the ($#,###), but then I loose my parenthesis around negative numbers.

Any suggestions?

Thanks in advance for your help!
Karla
 
Instead of Format Use FormatNumber function with appropriate arguments.

combo
 
What about

lbldifferenceAR.Caption = FormatCurrency([SumOfSumOfAR] - LastAR, 2)
 
Worked perfectly! Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top