I have very basic Crystal skills and I need help with an array parameter. We have a camp database where a child may attend camp for any number of 8 weeks. For example, a camper may attend weeks 1,2,3,7,8 stored in this format. We want the user to be able to select all weeks or multiple weeks in a report.If the parameter Week "Allow Multiple Values" is defined as False, then the below record selection works for 1 week.
If {?Week} = "ALL" Then
Not IsNull({CAMP_BILLING.CAMP_WEEKS})
Else
{?Week} in {CAMP_BILLING.CAMP_WEEKS}
However, I get the following error message if the parameter Week "Allow Multiple Values" is defined as True:
The array must be subscripted. For example: Array
We want the user to be able to select, for example, weeks 1 , 2 and 4 only. In this case, the record should be selected as the child attended weeks 1 and 2, even though the child did not attend week 4.
I know I will need to use variables and arrays but I have not reached that skill level yet so any detailed help would be greatly appreciated. I am trying to avoid having my DB manager create a view or a stored procedure in order for me to accomplish this.
Thanks!
If {?Week} = "ALL" Then
Not IsNull({CAMP_BILLING.CAMP_WEEKS})
Else
{?Week} in {CAMP_BILLING.CAMP_WEEKS}
However, I get the following error message if the parameter Week "Allow Multiple Values" is defined as True:
The array must be subscripted. For example: Array
We want the user to be able to select, for example, weeks 1 , 2 and 4 only. In this case, the record should be selected as the child attended weeks 1 and 2, even though the child did not attend week 4.
I know I will need to use variables and arrays but I have not reached that skill level yet so any detailed help would be greatly appreciated. I am trying to avoid having my DB manager create a view or a stored procedure in order for me to accomplish this.
Thanks!