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

Endswith Function?

Status
Not open for further replies.

MartUK

MIS
Jul 25, 2007
31
GB
I am using CR XI

I want to extract records where a field ends with RE from a string. It can be at any position in the field thats why I need ends with functionality rather than specific position

 
This should work:

Right({YourField},2)="RE"

Although to play it safe, there may be trailing spaces, so I would trim the field first:

Right(Trim({YourField}),2)="RE"

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If the phone doesn't ring, it's me".....Jimmy Buffet
 
Try something like:

right({table.string},2) = "RE" or
{table.string} like "*RE *"

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top