Click here to Skip to main content
15,924,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Code Project people!

I'm a Crystal Reports newbie so please be gentle. :)

I created three parameter string fields.

{?IDNumber1}
{?IDNumber2}
{?IDNumber3}

I want be able to type in three separate ID numbers and have the report select the three records. The report would then print a label for each one. There are dates associated with the labels and I am able to select a range of dates and have them print out like this really easy but that is not what I need. I cannot seem to pick and choose by ID number.

Also... If {?IDNumber2} or {?IDNumber3} is Null it would just skip them and only print out one label.

I basically want it to select {?IDNumber1}, {?IDNumber2}, and {?IDNumber3} but all I ever get when I try this is one label.

Any help would be greatly appreciated!

What I have tried:

I know these do not work but I have tried...

{Assets.IDNumber} in [{?IDNumber1}, {?IDNumber2}, {?IDNumber3}]


{Assets.IDNumber} = [{?IDNumber1}, {?IDNumber2}, {?IDNumber3}]


{Assets.IDNumber} = {?IDNumber1} AND {?IDNumber2} and {?IDNumber3}


{Assets.IDNumber} = {?IDNumber1} OR {?IDNumber2} OR {?IDNumber3}

And tried several options in Selection Expert.
Posted
Updated 26-May-17 7:18am
v2
Comments
[no name] 27-May-17 6:36am    
Maybe is one of helps?
From: Selecting Records in Crystal Reports 2013[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900