Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One team or all teams grouped depending on parameter 2

Status
Not open for further replies.

amasny

Programmer
Oct 6, 2003
20
PL
I made report including team column from tema table.
I would like have report which will show me data for one team
depending on ?team_name parameter if team name will be choosen or showing records for all teams if i will choose
"all" item contained in may parameter list.
 
Try this in the selection formula

if {?team_name} <> &quot;all&quot; then {Table.field} = {?team_name}

HTH

Gary Parker
Systems Support Analyst
Manchester, England
 
Gary's suggestion is correct.

You may get better performance with the equivalent condition of:
--------------------------------------------------------
({?team_name} = &quot;all&quot;) OR ({Table.field} = {?team_name})
--------------------------------------------------------

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Very thanks Gary and Ido. This helped me.
I've added this in record selection formula but in modified form and it works :
if {?team_name} <> &quot;all&quot; then {Table.field} = {?team_name}
else true.
I'm beginning crystal programmer.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top