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

Currency formating

Status
Not open for further replies.

glenmac

Technical User
Jul 3, 2002
947
CA
I have a form which shows sales tax for a price value. The calculation I've used are;
Me!GST.Value = CCur(Me!Pprice.Value) * 0.07
Me!PST.Value = CCur(Me!Pprice.Value) * 0.07
Me!Pprice.Value = CCur(Me!Pprice.Value) + (CCur(Me!GST.Value) + CCur(Me!PST.Value))
Frice = Me!Pprice.Value
I'd like to show the values formatted to look like currency, limiting the decimal places to 2. Is this possible? All help will be greatly appreciated.
 
Have you tried format(). For example:

?format(100000.455,"$#,###.##")

yields

$100,000.46



Mike Pastore

Hats off to (Roy) Harper
 
The easiest way to do this is to choose "Currency" for the FORMAT property for your text box.

This will automatically convert the value in that field to currency.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top