I have two parameters, @AccountID and @SourceType, and they are both drop-downs.
Here is the declaration of the @SourceType parameter in the stored procedure:
@SourceType BIT = NULL,
/*
* Works if @AccountID is not null
* (should only be used if @AccountID has a single value)
*
* 0 - Owned by @AccountID
* 1 - External (not owned by @AccountID)
*/
It should only be selectable, if AccountID has a single value (and it’s a multi-select with about 50 options).
I suggest you create a dataset that looks at the
@AccountIdparameter and returns options based on the number of values selected.Using the count attribute of a parameter will enable you to check if more than one value was selected. E.g.
Parameters!Parameter.Count.Then based on the number of returned counts you can set the
@SourceTypeparameter options.