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

Formula to Find Whole Word, Not Part of A Word

Status
Not open for further replies.

kc27

Technical User
Sep 10, 2008
171
US
If I use a formula like {file_info.desc} like "*ken*", it returns results that include words like kennedy or kent.

How do I modify the formula to return values that just include the whole word "ken", and exclude values that have words that also contain those those three letters?

Thanks for any ideas on this.
 
instr({file_info.desc},"ken ")

If this returns a value > 0 then it found ken with a space after it.

you could also test for
instr({file_info.desc}," ken") or
instr({file_info.desc}," ken ")
 
Thank you! Adding the space pulled the records I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top