does CR have a "like" or "in" function like SQL does?
does CR have a "like" or "in" function like SQL does?
(OP)
i am looking for a method to compare the numeric value of a column to a list of known numbers. Does CR have something similar to oracle's sql (the "IN" or "LIKE")
such as
If (column) in ('1234','2345','3456') then
"bob's your uncle"
elseif (column) in ('9876','8765','7845') then
"bob's your aunt"
else
nothing
Thanks
such as
If (column) in ('1234','2345','3456') then
"bob's your uncle"
elseif (column) in ('9876','8765','7845') then
"bob's your aunt"
else
nothing
Thanks

RE: does CR have a "like" or "in" function like SQL does?
Ken Hamady
http://www.kenhamady.com/
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
RE: does CR have a "like" or "in" function like SQL does?
Yes, you can use either the like or the in operators in Crysal reports. Look up In Array Operator, In Range Operator, and in String Operator. for the like, use the search to locate the Like operator. Crystal Help on these two are quite good.
Hope this helps.
E. McEvoy
Crystal Reports Consultant
www.pacificridgesolutions.com
RE: does CR have a "like" or "in" function like SQL does?
{PO_Custom_TextSmall1.potxt_Small02} IN ['Closed','Active']
RE: does CR have a "like" or "in" function like SQL does?
you may also find little used functions called:- "lookslike" and "soundslike" in the additional functions!
RE: does CR have a "like" or "in" function like SQL does?
3 months ago i knew next to nothing about CR, yesterday i completed a report with 80+ needed formulas.. but still have a great deal to learn...
Thanks again...