Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Record Selection Query Post Reply Post New Topic
Author Message
SwindonYid
Newbie
Newbie
Avatar

Joined: 26 Jan 2010
Location: United Kingdom
Online Status: Offline
Posts: 7
Quote SwindonYid Replybullet Topic: Record Selection Query
    Posted: 15 Nov 2010 at 3:53am
Hi,
 
I am trying to create a report that searches on a parameter the user enters.
 
I need to be able to search for this value over 3 different fields in the same database table at the time of record selection
 
ie....."ID12345" in {table.User ID}, {table.client ID} and {table.Order ID}
 
Any help gratefully received.
 
Matt
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 15 Nov 2010 at 8:52am

Open the Select Expert in the report.  If you have not already set a selection formula, select a field, any field.  Once you have the Expert open, click on the formula button and enter something like this:

 
({table.User ID} = {?MyParameter}  or {table. Client ID} = {?MyParameter} or {table.Order ID} = {?MyParameter})
 
Please note where I have places the parentheses at the beginning and end of this.  These are required if you have any other selection criteria defined or you won't get the data you're looking for.
 
-Dell
IP IP Logged
SwindonYid
Newbie
Newbie
Avatar

Joined: 26 Jan 2010
Location: United Kingdom
Online Status: Offline
Posts: 7
Quote SwindonYid Replybullet Posted: 15 Nov 2010 at 9:20pm
Dell,
 
many thanks for that, worked a treat!!!! I was soooo close, just had not put the parantheses at the end and beginning.
 
I now get the data I was looking for.
 
Once again, many thanks
 
Matt
 
Clap
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.