Select All as default value for Multivalue parameter

后端 未结 7 1642
无人共我
无人共我 2020-12-13 17:07

I\'m building a report in Visual Studio 2008 with a lot of multivalue parameters and it\'s working great, but I would like to have have the \"(Select all)\" option as the de

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 17:47

    This is rather easy to achieve by making a dataset with a text-query like this:

    SELECT 'Item1'
    UNION
    SELECT 'Item2'
    UNION
    SELECT 'Item3'
    UNION
    SELECT 'Item4'
    UNION
    SELECT 'ItemN'
    

    The query should return all items that can be selected.

提交回复
热议问题