Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Parameters Post Reply Post New Topic
Author Message
Madjack54
Newbie
Newbie
Avatar

Joined: 15 Apr 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Madjack54 Replybullet Topic: Parameters
     Posted: 15 Apr 2009 at 2:52pm
I have a Crystal Report 11 i have a selection formula record
 {@ToDate} = {?Date Range} and
( if  {?Customer Number} = 'All' then true else {ararecv.custno} = {?Customer Number}) and
( if  {?Item Number} = 'All' then true else {artrans.item} = {?Item Number}) and
(if {?Supplier Number} = 'All' then true else {apvend01.vendno} = {?Supplier Number})
 
The report only returns parameters with (ALL) selected if you enter a customer # or a Item # or a Supplier # it returns nothing.


Edited by Madjack54 - 15 Apr 2009 at 2:53pm
Born to Live Live to Ride
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Apr 2009 at 2:59pm
({@ToDate} = {?Date Range}) and
( if  {?Customer Number} = 'All' then {ararecv.custno} like '*' else {ararecv.custno} = {?Customer Number}) and
( if  {?Item Number} = 'All' then {artrans.item} like '*' else {artrans.item} = {?Item Number}) and
(if {?Supplier Number} = 'All' then {apvend01.vendno} like '*' else {apvend01.vendno} = {?Supplier Number})
IP IP Logged
Madjack54
Newbie
Newbie
Avatar

Joined: 15 Apr 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Madjack54 Replybullet Posted: 16 Apr 2009 at 10:32am
Thank you for your assistance but your formual didn't work still can get any data when selecting a single customer, item, or supplier

Edited by Madjack54 - 16 Apr 2009 at 10:36am
Born to Live Live to Ride
IP IP Logged
Madjack54
Newbie
Newbie
Avatar

Joined: 15 Apr 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Madjack54 Replybullet Posted: 16 Apr 2009 at 10:40am
I found out I needed the formula in the group slection and not in the record selection Thank you
Born to Live Live to Ride
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