Multiple values can be passed through the AddCurrentValue method of the ParameterFieldDefinition object.
For Example:
'crxRPT is the name of the report object.
'ParameterFields(1) references the first parameter in the ParameterFieldDefinitions collection.
'Enable multiple values for the parameter
crxRPT.ParameterFields(1).EnableMultipleValues = True
'Pass three separate parameters to the parameter field.
crxRPT.ParameterFields(1).AddCurrentValue "Canada"
crxRPT.ParameterFields(1).AddCurrentValue "USA"
crxRPT.ParameterFields(1).AddCurrentValue "UK"
You're going to have to know somehow. Perhaps you'll have a multi-select listbox in VB and you'll have to loop through the items in the listbox checking to see if each one is selected. For each one selected, you do a .AddCurrentValue.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.