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!

Dataset Filter with Null Passed By Parm

Status
Not open for further replies.

BB45

Technical User
Feb 3, 2005
42
0
0
US
SQL 2008 RB using models
SQL 2005 DB no direct db access

I have a report that has 2 datasets. Dataset2 populates a parameter list with a extra value (Select Null, ALL) and the ALL is the default.

Dataset 1 is the main data and this is where i have the problem. I am trying to set the filter for the dataset to accept the null and thereby not filter the data.

I have this expression in the dataset1 filter but I cannot figure out what to put for the second condition: =IIF(IsNothing(Parm.Value), ????,Parm.Value)

Thanks
BB
 
Try an empty string:

Code:
=IIF(IsNothing(Parm.Value), "",Parm.Value
 
This does not work because my parameter is passing an integer.
 
Figured it out. The format works this way:

IIF(IsNothing(Parm.Value),Fields.Value,Parm.Value)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top