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!

Select of Not

Status
Not open for further replies.

TEM3

Technical User
Dec 6, 2004
324
0
0
US
Using CR 8.5 and Oracle 9i tables:

I thought this would be easy, and it probably is. I just can't come up with the solution.

I created a parameter that I want the user to enter either "ALL" or a gun serial number. If they enter anything else but "ALL" they get the weapon with the matching serial number. If they enter "ALL" they get the entire list (no selection).

Can't make it work. Suggestions please?
 
That should be "Select OR Not".
 
(
if {?Parm} <> "All" then
{table.serialno} = {?Parm} else
if {?Parm} = "All" then
true
)

Make sure you have added "All" in your list of parameter options.

-LB
 
I was trying to be too fancy. The below seems to do the job.....

if uppercase({?Desired}) <> "ALL" then (uppercase({CHEMINV.Instrument Serial Number}) = uppercase({?Desired}) and
{CHEMINV.Asset Class} = "F")
else ({CHEMINV.Asset Class} = "F")

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top