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!

No Upper/Lower Limit for Date Parameter?

Status
Not open for further replies.

barb3246

Programmer
Oct 16, 2012
3
US
I am in the process of converting our existing Crystal Reports over to MS Reporting Services. One of the feature our users would like to see if the No Upper Limit and No Lower Limit functionality that is allowed on date parameters in Crystal Reports. I don't see anything similar in Reporting Services. Couls somebody tell me a way to implement this in Reporting Services? Thanks! Barb
 
Allow Date parameter to be Null and then enter into select filter, do same for EndDate

and (@StartDate is null or Datefield >= @StartDate)

Ian
 
Thanks for the reply Ian. I'm not sure I understand. In Crystal, if they select no lower limit, it will give them all dates prior to the END DATE. In your example, (@StartDate is null or Datefield >= @StartDate), if they didn't enter anything it will just look for dates that = NULL. The users want to see everything out there.

 
The effective result of this

(@StartDate is null or Datefield >= @StartDate)

is a boolean true or false

if @StartDate is null is true no date filter is applied as the or part will not be applied.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top