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

Selecting ALL in a Parameter field.

Status
Not open for further replies.

wil1952

MIS
Nov 12, 2003
11
US
I have a report I am running that list clients by their locality code. I have a parameter set up so the user can select the locality code they want to run the report for. Now the are asking to be able to select ALL and get everyone. How can I do this? Here is my record selection formula:

isnull ({episode.dschg_date}) and
{ep_discipline.admit_ntuc_flag} = "A" and
{episode.company_num} = {?Company Number} and
not ({patient.last_name} like "zz*") and
{episode.locality_code} = {?Map Page Number}

Thanks for any help.
 
Hi,
Modify your selection criteria formula to handle that choice ( add ALL to the list of values for the parameter) then

Code:
isnull ({episode.dschg_date})
 and
{ep_discipline.admit_ntuc_flag} = "A"
 and
{episode.company_num} = {?Company Number}
 and
not ({patient.last_name} like "zz*")
 and
( 
If {?Map Page Number} = "ALL" then
  True
   Else If {?Map Page Number} <> "ALL" 
    then 
  {episode.locality_code} = {?Map Page Number}
)

Hope it helps..





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top