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!

Formating numers to add comas in a char field

Status
Not open for further replies.

MikeL91

Programmer
Feb 8, 2001
100
US
My sorting software will not allow numeric fields, so I have to convert all numeric fields to char. But when I print my output, I need to have 1000 seperator comas in the numbers. Id there a easy function to add the comas to a number?

 
Mike,
If mytable.myfield is defined as Character, then try something like:
?Transform(val(mytable.myfield), "999,999,999.99")

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top