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

My customer wants "all" in param values..... 1

Status
Not open for further replies.

AlanApplications

Technical User
Nov 27, 2007
6
US
All my data runs in this report, but I thought this was the way to allow "ALL" as a parameter....help?


{workorder.status} = {?Status} and
{workorder.worktype} = {?Worktype} and
{workorder.leadcraft} = {?technican}
= iif({?Status}="All",{workorder.status},{?Status}) and
= iif({?Worktype}="All",{workorder.worktype},{?Worktype}) and
= iif({?technican}="All",{workorder.leadcraft},{?technican})
 
Try it this way:


(
if {?Status}<>"All" then
{workorder.status}={?Status}
else if {?Status}="All" then
true
) and
(
if {?Worktype}<>"All" then
{workorder.worktype}={?Worktype}
else if {?Worktype}="All" then
true
) and
(
if {?technican}<>"All" then
{workorder.leadcraft}={?technican}
else if {?technican}="All" then
true
)

~Brian
 
Please don't dual post. I didn't see this, and responded to your other post.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top