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

Select using NOT Instr? 1

Status
Not open for further replies.

mgallot

MIS
Jan 22, 2001
93
US
I'm using Crystal v9.0, and I have used the Instr function before to search for strings within memo fields. Now I need to search for records that do not contain a certain string in a memo field. Is there a way to do this? Thanks.
 
Just change the sign in the formula, e.g.,

instr({table.string},"ABC") = 0

However, it would be better to use the following in a record selection formula:

not({table.string} like "*ABC*")

...as this will pass to the SQL, resulting in a speedier report.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top