on 03-16-2012 1:35 PM
Hi, I currently have a crystal report that uses a Parameter field inserted as part of a SQL command.
However instead of relying on the user to enter the correct parameter I want to change this to a formula that is calculated in the report.
I tried replacing the parameter field with a formula but the SQL command then took no notice of the value.
How can I get the SQL to include a formula fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jason,
When you say you've included the parameter field as part of the SQL Command, do you mean you've created a Command Object with a parameter? Or you've added the parameter field as part of the Record Selection Formula?
And, what formula did you add to the SQL Command?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since commands are data sources, they get executed before formulas are evaluated, so this won't work. If you need to do data retrieval based on formulas in the report, you can use one of the following approaches:
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.