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 output in a label

Status
Not open for further replies.

chadp2002

Programmer
Feb 7, 2002
6
IE
I'm programming a cash register system and want to output prices in the format "#.##" (eg. "€0.60") in a label. The prices are coming in from an access database and the "0's" are taken off, so it out puts like ".6" instead of "€0.60".

Can anyone help me?
Thanks.
 

Label1 = Format(a$, "$0.#0")

if they are all under 1 this will work..

hope this helps!!
Hungoverhippie
 
thanks, should help with anything under 1 anyway.
 
Hi,
Label1.Caption = FormatCurrency(MyVar)

This will take into account your regional (currency) settings

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top