Solved

Limiting the number of Range of values used by a parameter

Posted on 2011-03-02
2
361 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
[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 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 35

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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 …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

732 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