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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Parameters

Status
Not open for further replies.

ForMe2

Technical User
Jan 16, 2007
15
0
0
US
How do I add multiple parameters for different fields so the user may choose just one criteria for one field? (So, they wouldn't have to choose 3 criterias) For example, they would want to filter the report {field.color}= red & sometimes they would want to filter it {field.date}> 1/28/07.
 
You could enter a parameter code and select using that. Make a boolian with a name like @MultiChoose,
Code:
(?CHOICE = "R" and {field.color} = "red")
OR
(?CHOICE = "D" and {field.date} > Date(2007, 01, 28)

Then say If @MultiChoose in the record selection and it should be OK.

For dates you'd probably want a moving date based on the current date, you get this with CurrentDate and DateAdd (which can subtract).

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods change between versions, and higher versions have extra options.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top