views:

499

answers:

3

Hi there

I'm building a report in VS08 with a lot of multiple values parameters and it's working great, but I would like to have have the "(Select all)" option as default value when the report is opened. Is there some kind of expression or sql code I can use to make this happen or do I need to choose "(Select all)" every time, in every parameter, each time I want to run the report?

Thanks anyway!

/iljitj

A: 

Try setting the parameters' "default value" to use the same query as the "available values". In effect it provides every single "available value" as a "default value" and the "Select All" option is automatically checked.

JC
Thanks a ton. Only thing to add is; if the query you are using for "available values" returns any null values, you can't set the default value to "(select all"), probably because the multivalue function doesn't allow nulls. Anyway thanks a lot for the answer.
iljitj
A: 

its a simple work around. Thanks a lot

sampath
A: 

Does not work if you have nulls.

You can get around this by modifying your select statement to plop something into nulls:

phonenumber = CASE WHEN (isnull(phonenumber, '')='') THEN '(blank)' ELSE phonenumber END

E_8