I am working on a crystal report. Now I added a new parameter for CustomerId so that the report result can be filtered according to that.
In the interface we can select multiple customers, so the values will be something like
strCustomerid = '1,2'; // 1 & 2 are customer ids
If I select only one customer the filtering works perfect, but when I select multiple its not.
I tried something like below code in Crystal Report record selection formula
{ihCustomerId} IN {?strCustomerid}
Then I get the error an integer is required here
, so i had to convert it into integer, I think thats where the mistake happen.
{ihCustomerId} IN ToNumber ({?strCustomerid})
Now if I select one customer it works perfectly, but on multiple its showing no result.
What is wrong here? how can I correct this? please help.