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

Record selection using memo field - Crystal Reports 9

Status
Not open for further replies.

Brian555

Technical User
Apr 29, 2005
20
GB
I have a database of accidents, one field of which is a memo field that contains the accident description. I would like to be able to select records that, for example, contain the word "Escalator" in this memo field.

Is this possible?

Any suggestions would be very much appreciated

 
I'm using version 9 with a csv file that has a long character field. Try:

{field} like "*Escalator*
 
Sorry, I forgot to mention where to enter it. Select Report, Selection Formulas then Record.
 
I would accommodate variations in case by using:

ucase({table.field}) like "*ESCALATOR*"

Better yet, create a SQL expression {%memo}:

{fn ucase(`table`.`field`)}

{%memo} like "*ESCALATOR*"

-LB
 
Thanks for your help - this has partially solved my problem. I would like to be able to input the keyword e.g Gondola via a parameter (string) but am having problems. My selection formula now looks like this:

{Sheet1_.storename} = {?storename} and
{Sheet1_.accidentdate} = {?accidentdate} and
ucase({Sheet1_.accidentdescription}) like "*{?Keyword}*" and
{Sheet1_.causeofinjury} = {?causeofinjury}

However, it does not appear to work.

Once again any suggestions would be most gratefully appreciated.
 
For parameters you have to set it up a little differently:

{Sheet1_.storename} = {?storename} and
{Sheet1_.accidentdate} = {?accidentdate} and
ucase({Sheet1_.accidentdescription}) like "*"+ucase({?Keyword})+"*" and
{Sheet1_.causeofinjury} = {?causeofinjury}

-LB
 
That has sorted it.

Many thanks for your assistance

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top