I've run into this issue before. You should be able to keep your stored proc as-is. It's the format of the parameter that is causing an issue because Crystal stores multi-select parameters in arrays, not strings. Since your stored proc is in a subreport, here's what you can do:
1. Create a formula in the main report that will concatenate the values in the array. It would look something like this:
StringVar multiParam := "";
for i := 1 to Ubound({?MyParameter}) do
(
if i = UBound({?MyParameter}) then
multiParam := multiParam + {?MyParameter}
else
multiParam := multiParam + {?MyParameter} + ",";
);
multiParam
You would then link from this formula to the parameter from the stored proc in the Subreport Links for your subreport - uncheck "Select data in in subreport based on data in field:" on the bottom right and select the appropriate parameter from the drop-down list on the bottom left.
-Dell
Edited by hilfy - 18 Jul 2013 at 8:26am