Solved

Limiting the number of Range of values used by a parameter

Posted on 2011-03-02
2
333 Views
Last Modified: 2012-08-13
I have a parameter that allows the user to select multiple employee numbers.  As an example it shows all employees from employee #1 to employee # 100.  However all direct employees are are numbered from 1 to 50, contractors are 51-100.  Right now they can pick any employee through 100.  I want them to only be able to run the report on contractors.  How do I set it up so that they can only select employee #s > 50?  More direct - how do I filter a parameter list?

Thanks,
0
Comment
Question by:soarhigher
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 35022632
I am not sure that you can.

You could try using a Command for the list like

Select EmpNumber From EmpTable where EmpNumber >= 51

You could make the parameter list static and just add the 51-100

mlmcc
0
 
LVL 34

Expert Comment

by:James0628
ID: 35025770
In addition to mlmcc's suggestions, you could let them choose any number, but then basically have the report ignore any that were outside of the desired range.  Something like:

{emp num} = {?emp param} and
{emp num} > 50


 That way if they select any numbers below 51, the report still won't include them.

 However, if this is some kind of security issue, note that if they're running the reports from CR, they could always go into the record selection formula and remove the > 50 condition.

 James
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now