Reporting Services Parameter Constraint

后端 未结 4 1745
Happy的楠姐
Happy的楠姐 2020-12-16 21:23

I have a reporting services (SQL 2008) report with two Date/Time parameters - begindate and enddate. I need to constrain enddate to the same month and year as begindate. T

4条回答
  •  一生所求
    2020-12-16 21:37

    I used the hidden text box idea because it was better than letting the report crash. What I was hoping to accomplish was to force the user to change their parameters up front before the report executed.

    BTW, the syntax didn't work. I used this instead:

    = Month(Parameters!begindate.Value) = Month(Parameters!enddate.Value) and Year(Parameters!begindate.Value) = Year(Parameters!enddate.Value)
    

    Thanks coldice for the idea.

提交回复
热议问题