We help IT Professionals succeed at work.
Get Started

Crystal Reports "IN" function

Last Modified: 2012-05-12
I'm using Crystal Reports for Visual Studio 2010. version 13.
SQL Server 2008 R2

I have a VB.Net user interface setup where the user can select a report from a listbox and then select the criteria they want to run that report for.  I want to allow the user to select multiple criteria for a single column, but I'm having no luck getting it to work.  Basically I want to pass criteria to the IN function like "where product IN('A','B','C')"

I can hardcode criteria into the IN function as a report formula and it works, but I haven't figured out how to pass a variable w/ comma seperated values and getting it to work. What can I do?

Watch Question
This problem has been solved!
Unlock 5 Answers and 34 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE