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

SELECT RECORDS FROM COMMENT FIELD

Status
Not open for further replies.

jobillborf

Programmer
Feb 13, 2001
61
0
0
US
Hi, using version 11. I would like to view all records that have the word INTERNAL in upper and/or lower case in a comments field. The word INTERNAL can be anywhere in the comments.
 
database used is oracle. Thanks for your help
 
In the Report->selection formulas->Record try:

instr({table.field},"INTERNAL") > 0

You could also use real SQL by using a Command Object instead of using the Crystal GUI.

-k
 
Try:

{table.comments} like "*INTERNAL*" or
{table.comments} like "*internal*"

This should pass to the SQL. (Gotcha, SV-- :))

-LB
 
<chuckling>

Well it doesn't pass here, LB, using CR XI.

However you can do easily offload processing to the database by using a SQL Expression of:

INSTR(UPPER(out_val),'INTERENAL'))

Then in the record selection formula state:

{%MySQLExpression} > 0

It should all pass nicely.

-k
 
Funny, I tested my suggestion here with XI and it did pass.

-LB
 
hi, I'm a little confused. I tried the first example and it did not work in version 11 it worked in version 9. Where do I place
INSTR(UPPER(out_val),'INTERENAL'))
and please define (out_val).


if I understand right
{%MySQLExpression} > 0 would be placed in the select statement.

Thank YOu .


 
I think SV meant:

instr(ucase(table.`field`),'INTERNAL')

You can either create that in the SQL expression expert and then set it > 0 in the record selection formula or you can try my suggestion. Either one will pass to the SQL.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top