Parameter is missing a value ssrs 2008

前端 未结 10 1247
一生所求
一生所求 2021-01-01 16:53

I have a parameter of integer datatype which is hidden. When i run the report, report gives me an error

Parameter X is missing a value

10条回答
  •  没有蜡笔的小新
    2021-01-01 17:18

    I had to do an "if exists" statement for this to go away. It worked for me because it makes it always return a value even if that value is not need by my query.

        if exists (my select query)
        my select query
        else 
        select '2' 
        // '2' would never be used, but it made ssrs stop giving me
        // the stupid error and execute the rest of the query
    

提交回复
热议问题