Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Parameter with Like, Specific and ALL Clause Issue Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 12 Feb 2014 at 12:09pm
IP IP Logged
jszawlosky
Newbie
Newbie
Avatar

Joined: 08 Jan 2014
Online Status: Offline
Posts: 16
Quote jszawlosky Replybullet Posted: 12 Feb 2014 at 12:23pm
Thanks! I studied the post, still not understanding what carriage returns are... Not a term I've ever heard.

Web definitions are very vague...
  1. The control character (0x0D in ASCII, abbreviated as CR) that originally signaled a device to perform a carriage return, but now merely indicates the end of a line of text.
  2. The key or lever that initiates the carriage return action (on a typewriter) or generates the carriage return character (on a computer)

At this point the report works with ALL and manually typing the city, I guess that will do for now, until I figure out what carriage returns are and how they might affect my report.

Thanks again for your help!

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Feb 2014 at 4:28am

It is basically just the chr(13) that end a line and starts the next like like a line break. You do not see the character but the text editor interprets it start a new line

I suggest it because your select statement is not finding any direct matches so it seems that there is something that is not an exact string match. Maybe an extra space or some other special character (like chr(13))?
{CityStateZipDataset} like "*"+{?CityStateZipParameter}+"*"
should capture everything that
{CityStateZipDataset} = {?CityStateZipParameter})
does and possibly more
YOu could do a little trouble shooting by trying to type in the mathcing records and adding one character at a time and see when it stops working (returning the desired results).
examples:
"Carrollton" works OK
Carrollton," works OK
Carrollton, " works OK
Carrollton, T" stopped working
something is between the ' and the T. maybe an extra space?
 
YOu can try this as another test in your select options:
replace({CityStateZipDataset},chr(13),"") like "*"+{?CityStateZipParameter}+"*"


Edited by DBlank - 13 Feb 2014 at 4:29am
IP IP Logged
jszawlosky
Newbie
Newbie
Avatar

Joined: 08 Jan 2014
Online Status: Offline
Posts: 16
Quote jszawlosky Replybullet Posted: 14 Feb 2014 at 6:41am
Thanks for the reply I put that replace line in there and I get the same results nothing if I pick something specifically and something if I type in something. if I copy a record straight out of SQL I get "Sacramento, CA 95815                        " So it would look to me like there are some spaces in the records...
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Feb 2014 at 6:54am
try and trim it
 
({?CityStateZipParameter} = "ALL"
or
trim({CityStateZipDataset}) like "*"+{?CityStateZipParameter}+"*")
 
IP IP Logged
jszawlosky
Newbie
Newbie
Avatar

Joined: 08 Jan 2014
Online Status: Offline
Posts: 16
Quote jszawlosky Replybullet Posted: 14 Feb 2014 at 7:15am
That works great! Thanks DBlank
IP IP Logged
jszawlosky
Newbie
Newbie
Avatar

Joined: 08 Jan 2014
Online Status: Offline
Posts: 16
Quote jszawlosky Replybullet Posted: 14 Feb 2014 at 7:16am
Not sure how to mark issue as resolved/closed?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Feb 2014 at 7:18am

You don't have to mark it as such on this forum.

Glad you got it working Thumbs%20Up
IP IP Logged
jszawlosky
Newbie
Newbie
Avatar

Joined: 08 Jan 2014
Online Status: Offline
Posts: 16
Quote jszawlosky Replybullet Posted: 14 Feb 2014 at 8:17am
Great! Thanks again!Smile
IP IP Logged
<< Prev Page  of 2
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.015 seconds.