Record Selection Formula Error

Please help me write the correct record selection formula that will display two names.

When I use the record selection formula shown below, the result is correct.

{Individuals.LastName} = "Doe"

However, when the record selection formula shown below is used, no records are displayed.

{Individuals.LastName} = "Doe" and
{Individuals.LastName} = "joe"
Mark01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
you want the report to show both Doe and Joe? Replace your and operator with a Or:
{Individuals.LastName} = "Doe" Or {Individuals.LastName} = "joe"

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark01Author Commented:
Thank you, Eric.
Pawan KumarDatabase ExpertCommented:
Please try using the IN operator with square brackets.

{Individuals.LastName} IN ( [ "Doe" , "joe" ] )
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Mark01Author Commented:
Moderator, I tried to award the points to  Eric and close question,but I cannot find a link to close the question. Thank you Pawan, but Eric already submitted an answer that solved the problem.
Pawan KumarDatabase ExpertCommented:
If you wish you can split the points by selecting both the answers.

to close an answer-
You need to select one or more multiple answers and click submit.
Mark01Author Commented:
Pumar, I tried that twice but it did not work.
Mark01Author Commented:
Thank you, Eric and Pawan.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.