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!

Dynamic Parameter to incliude Null values

Status
Not open for further replies.

GCL2007

IS-IT--Management
Dec 11, 2007
167
US
Not sure if there is a way to handle this. Have a Dynamic Parameter based on Product Type field (Crystal XI). Report works fine - but there are a number of entries in database with Null value in Product Type field. Would like the parameter selection when the report is run to include an option for 'null' in addition to the product types it finds. Any one have any ideas on how best to do this?
Thanks
 
Use a command to populate the dynamic parameter picklist:

select table.ProductType
from table
union
select ' Null'
from table

The space will force ' Null' to be at the top of the list. Then create a record selection formula like this:

(
(
{?ProdType} = ' Null' and
isnull({table.producttype})
) or
{table.producttype} = {?ProdType}
)

Be sure NOT to reference the command field in the body of the report.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top