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

Formatting Currency Field Embedded in Text Box

Status
Not open for further replies.

GliTTer

Technical User
Oct 2, 2002
3
SE
Hello,

I'm trying to format a currency field that is embedded in a text box so that it has the $ and comma separator, but no decimal or trailing zeros. Currently, the expression looks like this:

="The company contributes " & Format([ContributionAmount],"Currency") & " per year for up to 10 years."

Which produces - $35,263.00

Only I want - $35,263

Changing it to "Standard" removes the $, but not the decimal.

Any advice is much appreciated.

Thanks!
 
Change your line to read....

="The company contributes " & Format([ContributionAmount],"$#,###") & " per year for up to 10 years."

Will produce the results you want. Programming isn't a profession of choice.
It's a profession of calling...
"Hey Programmer, your application broke again!" [spin]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top