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

JR

Status
Not open for further replies.

JHTEX1

Programmer
Sep 11, 2001
3
US
Hello,
How do I format a text box on a form (txttotal.text) so that the result would read as currency with 2 decimal places.
thanks,
JR
 
txttotal.text = Format(YourValue,"#,##0.00")
 
Thanks for the response, but when you say your value?
How did this come along.
JR
 
Where are you getting the value from? I assumed that you had it stored in a variable (YourValue). If you are just formatting a user input field, change the DataFormat in the Properties window for that textbox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top