Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Record selection Post Reply Post New Topic
Author Message
Elisha83
Groupie
Groupie


Joined: 19 Feb 2008
Location: Malaysia
Online Status: Offline
Posts: 62
Quote Elisha83 Replybullet Topic: Record selection
     Posted: 14 Nov 2010 at 5:14pm
Hi there..
 
I need help on retrieving customer info based on selection. Example,
 
If my parameter : Customer = blank, then show all records. If parameter has been entered, then show that particular customer.
 
How can I do that? Please advice...
 
 
 
Thanks in advance..
 
 
 
Elisha
3Lish@
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 9:24am
You'll have to edit the selection formula.  Open the Select Expert.  If you do not already have something in the selection criteria, select the Customer field you'll use in your formula.  Now click on the "Show Formula" button and then on the "Edit Formula" button.  In the formula editor enter something like this:
 
(IsNull({?MyParameter}) or {?MyParameter} = "" or {table.Customer} = {?MyParameter})
 
Please note the parentheses at the begining and end.  If you have any other selection criteria in your report, you MUST have the parentheses in order for the correct data to be retrieved.
 
-Dell
IP IP Logged
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