Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limiting the # of choices for a multiple value parameter

Status
Not open for further replies.

swhitten

Technical User
Sep 3, 2002
191
US
The user wants a parameter that allows them to choose multiple values, but they want to limit how many can be chosen. I know how to set up a parameter that is either False on Allow Multiple Values or True on Allow Multiple Values, but if I set it to True, I don't know how to restrict how many they can select. Example: If we want to report on one to three zip codes, I have a dynamic list of all the zip codes. The zip code parameter allows multiple values. How can I restrict it so they can ONLY include one to three, no more than three zip codes when they run the report? Thanks!
 
Can't do this upfront, but you can check the count and abort (using a record selection formula that ensures the count of elements in the parameter array is below N).

You can also display (un-suppress) a text object indicating the violation

- Ido

view, email, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top