Uri, thank you for the reply. I am a bit new to SSRS. The user would be
running the report(s) from RM. Where exactly would I put the IF statement?
I'm thinking in the dataset, is that correct?
.... John
> JohnE
>
[quoted text clipped - 18 lines]
>
> .
Uri Dimant - 08 Feb 2010 09:13 GMT
Hi
Yep, or perhaps wrap your query within a stored procedure
> Uri, thank you for the reply. I am a bit new to SSRS. The user would be
> running the report(s) from RM. Where exactly would I put the IF
[quoted text clipped - 28 lines]
>>
>> .
Bruce L-C [MVP] - 08 Feb 2010 14:26 GMT
To allow Null you have to check that box for the dates. Instead of an if
statement you can just combine into one statement. Taking Uri's code:
SELECT <columns>FROM tble WHERE (dt >=@startdate AND dt <
DATEADD(d,1,@enddate)) or
(dt <DATEADD(d,1,@enddate) and @startdate is null)

Signature
Bruce Loehle-Conger
MVP SQL Server Reporting Services
> Uri, thank you for the reply. I am a bit new to SSRS. The user would be
> running the report(s) from RM. Where exactly would I put the IF
[quoted text clipped - 28 lines]
>>
>> .