Solved

Limiting the number of Range of values used by a parameter

Posted on 2011-03-02
2
326 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

759 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

21 Experts available now in Live!

Get 1:1 Help Now