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

removing characters from a string

Status
Not open for further replies.

itlbritguy

Technical User
Oct 12, 2009
2
US
I have a field which contains the city,ST information. How can I just retrieve the ST information? The state is always the 2 character state code assigned by the Post Office. I would need to remove everything up to and including the comma (",").

 
RIGHT(TRIM({FIELDNAME},2)



_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
RIGHT(TRIM({FIELDNAME}),2)

I forgot a paren

_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top