Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: searching by keyword in field Post Reply Post New Topic
Author Message
lorimack
Groupie
Groupie


Joined: 03 Nov 2009
Online Status: Offline
Posts: 48
Quote lorimack Replybullet Topic: searching by keyword in field
    Posted: 15 Apr 2013 at 3:10am
Good morning,
 
Is it possible to search a field by a keyword? 
 
For example,I have 10 records with 3 field
 
Name
Age
Note
 
I would like to search all persons named Jim that are 42 with the word "tattoo" in the note field.  Is that possible since Note field isn't a selection, its free text?
IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet Posted: 15 Apr 2013 at 3:20am
I assume you mean that you created 3 parameters that you use in your record selection? In that case it is possible, you just have to set the 'Use custom value' to yes in your parameter.

However, you will probably have to change your record selection formula then, because you will have to check if a part of the field is Tattoo.

you could change it to something like
InStr({table.field}, {?Note}) <> 0
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Apr 2013 at 3:58am
you can also use LIKE but neither will work if you set the param to allow multiple values
 
{table.Note} like '*' + {?Note} + '*'
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.