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

remove blank space before punctuation

Status
Not open for further replies.

teamssc

Instructor
Nov 16, 2000
65
0
0
US
I have a Crystal XI report that is pulling data from a MSSQL database. One of the fields, that is a memo field, has data typed in all CAPS. If there is a punctuation mark in the data then Crystal puts a space before the punctuation mark. I need to take that space out. I'm not really sure what is adding it.

Any help would be appreciated.
 
Since you probably don't want to remove ALL spaces, try the following, adding in punctuation marks as necessary:

replace(replace(replace({table.memo}," ,",",")," .",".")," ;",";") //etc.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top