Hello: I'm trying to search exclusively on a Date field in an SSRS report where:
- Date BETWEEN @StartDate and @EndDate
- Date IS NULL
- Date IS NULL OR BETWEEN @StartDate and @EndDate
I have the OR statement working:
WHERE ((Date BETWEEN @StartDate AND @EndDate) OR (Date IS NULL))
The issues I have are:
Can I CASE ELSE to start BETWEEN clause?
CASE WHEN @ChkStartDate IS NULL OR @ChkEndDate IS NULL THEN CheckReg.CheckDate IS NULL
ELSE CheckReg.CheckDate BETWEEN @ChkStartDate and @ChkEndDate
END)
Can I configure the SSRS report so the user can search on all three Date conditions?
- Date BETWEEN
- DATE IS NULL
- DATE BETWEEN OR DATE IS NULL
Thanks ALL