Crystal Reports Formula Error

Please help resolve a formula error. The following formula works without any errors:
{Individuals.LastName} IN ( [ "ross" ] ) and
{Letters.LtrName} IN ( [ "first test" ] )

The following formula does not work:
({Individuals.LastName} IN ( [ "ross" ] ) and
{Letters.LtrName} IN ( [ "first test" ] )) and
({Individuals.LastName} IN ( [ "johnson" ] ) and
{Letters.LtrName} IN ( [ "first test" ] ))
Mark01Asked:
Who is Participating?
 
mlmccConnect With a Mentor Commented:
Try it this way

{Individuals.LastName} IN  [ "ross" , "Johnson" ]  AND
{Letters.LtrName} IN  [ "first test" ]

mlmcc
0
 
Rgonzo1971Connect With a Mentor Commented:
HI,

Maybe
({Individuals.LastName} IN ( [ "ross" ] ) and
{Letters.LtrName} IN ( [ "first test" ] )) or
({Individuals.LastName} IN ( [ "johnson" ] ) and
{Letters.LtrName} IN ( [ "first test" ] ))

Open in new window

Regards
0
 
Mark01Author Commented:
@Rgonzo1971; That formula only results in the record for Ross. It does not display the johnson record.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Mark01Author Commented:
@mlmcc; The formula only displays the record for Ross. It does not display the johnson record.
0
 
mlmccCommented:
Is the database case sensitive?

Are you sure there are records with Johnson?

mlmcc
0
 
Mark01Author Commented:
I don't know if the database is case sensitive; its an Access database. Yes, I verified that there is at least one record with Johnson. The report pulls data from five tables in three databases. The attached screenshots shows the five tables and the report design. I've tested several Crystal reports and there were no errors.

Note that the Businesses table is located in a third, private database. Also note that the fields in the suppressed headers are used for Visual Cut bursting.
report designtables
0
 
Mark01Author Commented:
Both of the formulas worked. I found the error. There was no record for Johnson in the Ltr_Indiv_Link table. Thank you, mlmcc and Rgonzo1971.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.