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

Mulitple "All" Parameter selection criteria question 1

Status
Not open for further replies.

redsand23

Technical User
Feb 22, 2002
77
0
0
US
I am running cr9.2 and am having difficulty with multiple paramter selection criteria
The goal is to have the user have the ability to choose any combination (Both all/none all/1 all 1 value)

{QryRep.ReqDate} in {?StartDate} to {?EndDate} and
IF {?Cellname} <> "All" then {QryRep.Cellname} = {?Cellname} else true and
IF {?ProductType} <> "All" then {QryRep.tblMain.Prodtype} = {?ProductType} else true

Can someone help with the order of how 2 "All" selection criteria works

Thanks!!
 
It's all in the parentheses:

{QryRep.ReqDate} in {?StartDate} to {?EndDate} and
(IF {?Cellname} <> "All" then {QryRep.Cellname} = {?Cellname} else true) and
(IF {?ProductType} <> "All" then {QryRep.tblMain.Prodtype} = {?ProductType} else true)

Should do the trick.

Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top