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

Simple Selection Question

Status
Not open for further replies.

bamitts

Technical User
Nov 18, 2001
12
US
I don't use Crystal very often, so please forgive my obvious lack of knowledge...and thanks in advance for any help!

Using Crystal 9, SQL Database

I am attempting to write a selection formula to filter Equipment. I want to ask the parameter "(A)ctive (I)nactive or blank for all?" . I've used the following formula:

(if {?IncludeInactive} = 'A' then {EMEM.Status}= 'A'else
if {?IncludeInactive} = 'I'then {EMEM.Status}= 'I'else
1=1)

Not working, I always get all?! Any help?
 
if {?IncludeInactive} = 'A' then {EMEM.Status}= 'A' else
if {?IncludeInactive} = 'I'then {EMEM.Status}= 'I' else true

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
I would add a parameter option of "Both" and then use a record selection formula like:

if {?Include} <> "Both" then
{EMEM.Status}= {?Include} else
if {?Include} = "Both" then
true

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top