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

How to exclude tickets with certain word in field.

Status
Not open for further replies.

rico7937

IS-IT--Management
Feb 20, 2001
33
US
I am using Crystal Reports 10. I have a field called Problem Abstract which is a free form text field with a limit of 55 characters. I am trying to come up with a formula that would exclude tickets containing the word "Password" in the problem abstract field. Any ideas or suggestion would be greatly appreciated.
 
Try:

If instr(uppercase({table.problemabstract}),"PASSWORD") > 0 then
"Password"
else
{table.problemabstract}

-k
 
Rico:

In your record selection you could add:

Code:
[blue]NOT[/blue]("Password" [blue]IN[/blue] {Table.ProblemAbstraction})

Hope this helps,

Mike
______________________________________________________________
[banghead] "It Seems All My Problems Exist Between Keyboard and Chair"
 
Thank you for all of your help! Both of these formulas work well ! Is there a way to enhance these formulas by adding other words to them ? They now want me to exclude up to 15 different other words in the formulas. Here are the words:

password, pswd, expedite, expedited, reset, disable, disabled, unlock, unlocked, expidited, experdited, SLA, SAP Implementation, PeopleSoft, or past due.

How do I go about this ?
 
Use a record selection formula like:

not(
ucase({table.problemabstract}) like "*PASSWORD*" or
ucase({table.problemabstract}) like "*PSWD*" or
ucase({table.problemabstract}) like "*EXPEDITE*" //ETC.
)

-LB


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top