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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic parameter in report selection formula

Status
Not open for further replies.

jnujella

Programmer
Feb 15, 2007
15
US
HI all,

I am working with crystal reports version XI release 2
I have a report where I am using the dynamic parameters.
And it has got multiple value selection.

The dynamic parameter is country.
It is displaying all the countries like country 1 to country n
User can select any number of coutnries from 0 to n.

I have show the records related to that particular countries.So i have wrote an record selection formula like
{tablename.field} in [{?Names}].

HOwever it is throwing error like "The array must be subscripted. For example : Array"

How can i correct the foumula

Thanks for any help extented.
 
Remove the square brackets:

{tablename.field} in {?Names}

-LB
 
so easy ha....
thanks for your help ....
can you explain what was the difference between these two just throw some light if you can even other wise I am fine as my report worked..

Thank you so much for your help

 
While the values in the parameter do constitute an array, by adding the brackets, the formula was looking for more than one element, with the parameter field itself representing only the first element in the array. Then because that one element could have multiple values, the formula was looking for the subscript to limit it to one value.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top