troubleshooting Question

Crystal XI: Filter a user parameter basedon a condition?

Avatar of QTony
QTony asked on
Crystal Reports
10 Comments1 Solution445 ViewsLast Modified:
I have a subreport that is occasionally  needed; about once a week. When it is not needed, it is suppressed by a condition and does not display.

I would like to add a simple number parameter to this subreport that will allow the user to increase the final quantity that this report produces. (This report generates a list of wood panels)

I was able to create and install the parameter and it does work correctly. However, the parameter prompts for values   everytime the main report runs regardless of whether or not the subreport is supressed..

No matter what conditions I put prior to the parameter formula, I cannot get it to filter out when it is not needed. I know my filters are correct, because if I test them on any other formulas, they work fine. It is only on the parameter formula that they don't apply. I'm assuming I'm doing something incorrect and not understanding  how the parameter field processes.

Here is my parameter and the conditions I am trying to use with it:

If {@PL_GR_CLU_CALC 2} = 0 Then

"QTY: " & ToText({@PL_GR_0.25_CNC_CALC 2} ,0) Else

"QTY: " & ToText({@PL_GR_0.25_CNC_CALC 2} + {?My Parameter},0)

The above formula will still process ?MyParameter even if the the value is "0"

Thank you for looking
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros