I need to select one value from a field that allows multiple values in the field for each record. For example, the field contain, A,B,HR,FIN. I need only the records that contain HR. Which functions works for this?
It's inefficient, but in the record selection formula use:
instr('HR', {table.Field}) > 0
If you're using a SQL Server database (or any SQL compliant database and connectivity), you can create a SQL Expression to create a test of the condition and filter accordingly in the record selection formula, offloading the work to the server, as in the following SQL Expression which I named instrtest:
Ido offered a nice alternative to my first suggestion, but again, this won't be passed to the database, it will be processed by Crystal (slower performance).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.