Solved

create a record selection formula from multiple values of a parameter

Posted on 2004-08-31
4
567 Views
Last Modified: 2011-10-03
Hi Experts

In Crystal 9 . I am using a parameter where you can add multiple values.
i have to generate a record selection formula in crystal report.

table.fieldname = parameter[i] or table.fieldname = parameter[2]


Something like the code below.

for i=1 to ubound(multipleParam)
(      
      If i=1 Then
            table.fieldname = multipleparam[i]
      Else
            or
            (
                  table.fieldname = multipleparam[i]
            )      

)
0
Comment
Question by:PradeepYadhav
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
bdreed35 earned 250 total points
ID: 11941645
You are going to kick yourself when yo usee how easy this was.

{Table.fieldname} in {?multiparam}

That is all you need instead of the for loop.
0
 
LVL 13

Expert Comment

by:vidru
ID: 11941659
You should just be able to use this as your record selection formula:

{Table.FieldName} In {?MultiValueParameter}

-dave
0
 
LVL 28

Expert Comment

by:bdreed35
ID: 11941707
Dave, I see you found your way over here too!
0
 
LVL 13

Expert Comment

by:vidru
ID: 11943141
Hey Brian...

Yep, there are a lot of familiar handles in here ;)

-dave
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question