Using formula field in selection formula 
Author Message
 Using formula field in selection formula

I am trying to pass a number("rec") to a report in a formula
field("frec").  I would like to the report to use the value of "frec" in
the WHERE clause of the SELECT statement.  Does anyone know if this can
be done, and how?

Regards,
S.H.



Sat, 09 Sep 2000 03:00:00 GMT  
 Using formula field in selection formula

Quote:

> I am trying to pass a number("rec") to a report in a formula
> field("frec").  I would like to the report to use the value of "frec" in
> the WHERE clause of the SELECT statement.  Does anyone know if this can
> be done, and how?

> Regards,
> S.H.


Hi Steve,

You cannot do this.  Since the formula you created is not part of the
database, it cannot be translated to SQL.  Here is what you can do instead.
If you are going to be calling the report from an application, you can pass
a variable directly to the SQL with the SQLQuery property if you use the OCX
or PESetSQLQuery.  This will work much better.

--
Sincerely,
Brian Dong

To reply, remove nospam from the address.



Sat, 09 Sep 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using formula field in selection formula

2. Using formula field in selection formula

3. convert text field to numeric field being used in Selection Formula

4. Date in Text Field..How Do I Covert It Formula Selection

5. Running Totals, accessing the database fields outside of the selection formula

6. Help with using date variable in Crystal reports selection formula

7. Record Selection using multiple formula

8. using VB variables in record selection formula?

9. Using a record selection formula in a subreport

10. Passing multiple criteria (IN STATEMENT) to Crystal using Selection Formula

11. Using Formulas As Selection Criteria

12. using formula field in detail section - how to keep in on first page

 

 
Powered by phpBB® Forum Software