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!

Help with parameter

Status
Not open for further replies.

abc567

Programmer
Jul 8, 2009
45
US
I want to add 'ALL' wildcard character in parameters so that when users select 'ALL' then all the records should be displayed.
Which formula should i write in select expert to do this..?
 
The formula you want is
({?Parameter} = "ALL" or {table.field}={?parameter})

Easier to do this in the formula editor rather than the select expert. It's a little bit complex for the select expert. Use the menu item Report/Edit Selection Formula/Record

Editor and Publisher of Crystal Clear
 
Damn !!
You are excellent buddy...!!

Thanks
 
If database filed has null or blank, those records are not showing up in the report output.

Do you know how to pull the null values with this statement:

({table.field}={?parameter} or {?Parameter} = "ALL")

I have null's / blanks in {table.field}.

Thanks,

techie2
 
Thanks guys, I figured it out.

I should have used "ALL" statement before to handle nulls. This is how the stament should look like.

({?Parameter} = "ALL" or {table.field}={?parameter})

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top