Currency Format

T

Tom

The user enters a price in a textbox, whose format property is Currency & no
decimal places, on a form. On the AfterUpdate event a msgbox comes up to get
the user to confirm the price. Within the string of that message is the
value of that textbox. How can I format this value to appear as currency but
with no decimal places.

TIA

Tom
 
M

Marshall Barton

Tom said:
The user enters a price in a textbox, whose format property is Currency & no
decimal places, on a form. On the AfterUpdate event a msgbox comes up to get
the user to confirm the price. Within the string of that message is the
value of that textbox. How can I format this value to appear as currency but
with no decimal places.


Use the Format function:

"xxx" & Format(textbox, "$#,##0") & "yyy"
 
F

fredg

The user enters a price in a textbox, whose format property is Currency & no
decimal places, on a form. On the AfterUpdate event a msgbox comes up to get
the user to confirm the price. Within the string of that message is the
value of that textbox. How can I format this value to appear as currency but
with no decimal places.

TIA

Tom

MsgBox "The amount was " & Format([ANumber], "$#,###.")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top