Solved

create a record selection formula from multiple values of a parameter

Posted on 2004-08-31
4
569 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 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