Question : Crystal 2008 - Like with while card for a multi-select paramater in record selection formula

We have a sql command as the data source for a report.
We have a multi-select parameter for department.

We would like in the record selection formula to do the following
For example {db.department} LIKE multi-select parameter +'*'

Would this return the results for each value selected in multi-select parameter list box?

For example if the user selects department1 and department2 from the multi-select list box
would crystal decipher the selection criteria like the following:
department like department1 + '*' may return department101, department 102
or
deparment like department2 + '*'   may return department201, department 202

Answer : Crystal 2008 - Like with while card for a multi-select paramater in record selection formula

I don't believe you can use a wildcard with a multiple parameter that way.

Something like this might work

StringVar Array Input := {?AnyStringPrompt};  // replace this with your string prompt
NumberVar howmany:= count (Input);
Numbervar Index;
BooleanVar SelectFormula:= False;

For Index := 1 to howmany do
  SelectFormula := SelectFormula OR {DepartmentField} StartsWith Input[Index];

SelectFormula

mlmcc
Random Solutions  
 
programming4us programming4us