Working with the Like Function

The next topic in our write- up of the Functions that come with Business Objects Crystal Report is the Like function.  I use the “Like” function a lot in my record selection criteria.  Double parenthesis and the star character is the key to this function.


The basic syntax looks like this:


{Field} like (“*a*”)


This will return any value in the field that contains an “a”.


{Field} like (“a*”)


This will return any value in the field that starts with an “a”.


{Field} like (“*a”)


This will return any value in the field that ends with an “a”.


If there is character set that the middle character you can use a ? in the syntax.


{Field} like (“*s?n”)


This will provide us all names that the third to the last characters contain the “s”, the second to the last character contains anything, and the last character is an “n”.


Simple but useful little function.


Remember our list of free SalesLogix Reports


 

1 Comment

  1. Thanks

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!