Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Multi-Valued Parameters

Status
Not open for further replies.

kken

Programmer
Jun 5, 2001
51
CA
Hi Everyone:
Can you pass a multi-Valued parameter from the web to a crystal report?



Thank you
Ken
 
This used to be a limitation. I haven't heard of it being solved yet. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Thank you Ken:
It is very helpfull to know I need to do it in another way.
 
If you're using v.8 and ASP, it's the same ASP code as a single-value parameter, but use the AddCurrentValue method of the parameter instead of the SetCurrentValue.
This example is for a parameter of type string:

set session("ParamCollection") = session("oRpt).Parameterfields

set Param = session("ParamCollection").Item(1)
//if your parameter values are in an array:

for i = 0 to ubound(myArray)
Call Param2.AddCurrentValue(CStr(myArray(i)),12)
next

Hope that helps!
 
I wasn't using asp but it definatly is a consideration now.


Thank you mmaz.
ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top