Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8556

Re: Crystal Reports- Filter field by specific word(s)

$
0
0

Hi Willie,

 

What database are you reporting against?

 

If you code this in the record selection formula using CR functions, the filter will not be passed back to the database and hence you'll end up sending all the rows from the database to CR for filtering - not the best thing after all.

 

Use a SQL Expression instead. Go to the Field Explorer > Right-click SQL Expression Fields > and use this code:

 

regexp_instr("Table"."Database"_Field",'(replaced|replace|swap|UPS)')

 

Note: This SQL Expression will work only if you're using Oracle. For other databases, look for the database documentation.

 

Once the SQL Expression is created, go to the Record Selection Formula and use this code:

 

{%SQL_Exp_Name} > 0

 

-Abhilash


Viewing all articles
Browse latest Browse all 8556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>