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!

How to replace comma in a field

Status
Not open for further replies.

GFAlexander

IS-IT--Management
Nov 12, 2001
68
0
0
GB
This is going to sound really lame, but can someone tell me how to replace a field with the same fields minus any commas?

Example.
Description Field = "Costume, Mens, Large"

I want it to be "Costume Mens Large"

I know it's going to be really simple, but please help.

Thanx

Gary Alexander
 
Try this

YourString = STRTRAN(YoursSring, ',')

Germán Restrepo
Bogotá, Colombia
 
I mean

YourString = STRTRAN(YourString, ',')

Best regards

Germán Restrepo
Bogotá, Colombia
 
I mean

YourString = STRTRAN(YourString, ',')

Or seeing as it's a field in the original post:

[tt] Replace YourField With StrTran(YourString, ',')[/tt]

Thinking a bit more deeply, can you guarantee that there will always be a comma plus a space between words. Will you ever have to deal with entries without spaces: "Costume,Mens,Large"

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top