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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports 7 parameters based on previous parameters

Status
Not open for further replies.

knappagh1

Technical User
Sep 16, 2004
82
GB
Is it posible to make the selection criteria for a parameterto be based on what was selected in a previous parameter

For example my first Parameter is Category and contains the following:
All
Design
Manufacturing
Operations

If I select Design then the second parameter options give me:
Walls
Floors
Roof

If I select Manufacturing then the second parameter options give me:
Machine
Saw
Hammer

etc
 
You could set up a record selection formula like this:
(
if {?Category} <> "All" then(
select {?Category}
case "Design" : {table.field1} = {?Design}
case "Manufacturing" : {table.field2} = {?Manufacturing}
) else
if {?Category = "All" then
true
)

-LB
 
Sorry a bit confused

case "Design" : {table.field1} = {?Design}

what does {table.field1} represent ?
 
You should plug in whatever field that you would selecting based on the {?Design} parameter. This assumes you have separate parameters per parameter1 option.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top