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!

Strip Punctuation from Field 1

Status
Not open for further replies.

sjp0362

Technical User
Oct 23, 2004
48
US
Is there a formula in Crystal Reports that can strip periods and commas out of a field?

I want to leave the punctuation within my data fields so that my other reports come out like I want them. Currently I'm trying to create a report that brings in all my address fields and follows the USPS guidelines (all caps with no periods or commas).

I know the formula for changing everything to all caps, but is there also a formula out there that can eliminate by periods and commas?
 
You can also do this without having to use a UFL:

Uppercase(replace(replace({table.field},".",""),",",""))

~Brian
 
Thanks for the suggestions. Since I've never used a UFL before, I decided to use the "replace" formula and it worked wonderfully.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top