Error 20515, on selection formula? 
Author Message
 Error 20515, on selection formula?

Dear all,

I have a VB application that call up a Crystal Report, I want to pass a
simple selection formula from VB.

At first I tried to pass a simple formula like {tblTimeRec.UserID}='KK', it
works fine and I can call up Cry Rpt.

Then, in Cry Rpt I tried out another formular, (coz I'm new to Cry Rpt so I
test it in Cry Rpt first):
{tblAccounts.Manager} = 'MP'  And {tblTimeRec.TChgDate} in Date(2002,4,30)
to Date(2002,5,29)

It's work so I build this in VB and replace it with some variables, however,
it gives me a "20515" error.  This is the second time happend on me :(

Is this the issue of my selection formula?  Or since I upgrade the Cry Rpt
from 4.x (shipped with VB) to Cry Rpt 8.5 Pro, will there be any issue
related to this?

Thanks!

K.K.



Mon, 15 Nov 2004 11:58:58 GMT  
 Error 20515, on selection formula?
And... after that I even can't pass the simple Selection formula
{tblTime.UserID} = 'KK', it also gives me 20515 err....

Please help~

K.K.



Mon, 15 Nov 2004 12:21:25 GMT  
 Error 20515, on selection formula?
This is the description of 20515 error:
20515
Error In Formula. There is a formula error in the replacement formula text.
Review the formula syntax and retry.

You must be passing a value in the formula that Crystal doesn't like. Is it
possible that you're passing a value with apostrophe?

Quote:

> And... after that I even can't pass the simple Selection formula
> {tblTime.UserID} = 'KK', it also gives me 20515 err....

> Please help~

> K.K.



Tue, 16 Nov 2004 01:06:51 GMT  
 Error 20515, on selection formula?
Thanks cksj,

Yes, the apostrophe contribute to the problem, I'm now using Chr(34) to
replace it, and interesting enought, I left spaces in my selection formula
editor that causes the trouble too!!

Thanks again~

K.K. :)

Quote:

> Dear all,

> I have a VB application that call up a crystal report, I want to pass a
> simple selection formula from VB.

> At first I tried to pass a simple formula like {tblTimeRec.UserID}='KK',
it
> works fine and I can call up Cry Rpt.

> Then, in Cry Rpt I tried out another formular, (coz I'm new to Cry Rpt so
I
> test it in Cry Rpt first):
> {tblAccounts.Manager} = 'MP'  And {tblTimeRec.TChgDate} in Date(2002,4,30)
> to Date(2002,5,29)

> It's work so I build this in VB and replace it with some variables,
however,
> it gives me a "20515" error.  This is the second time happend on me :(

> Is this the issue of my selection formula?  Or since I upgrade the Cry Rpt
> from 4.x (shipped with VB) to Cry Rpt 8.5 Pro, will there be any issue
> related to this?

> Thanks!

> K.K.



Tue, 16 Nov 2004 09:53:10 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Error 20515 error in formula

2. Crystal choking on 20515 Error

3. Error 20515 - the field name is not known

4. runtime error '20515'

5. Error 20515

6. VB 4.0 and CR 4.0 error 20515 - Help!

7. RunTime Error 20515

8. Error 20515

9. Error 20515

10. 20515 - Error in Formula <Details> - Please HELP!!!!

11. 20515 - Error in Formula <Record_Selection> - HELP PLEASE....PLEASE!!!!

12. Using formula field in selection formula

 

 
Powered by phpBB® Forum Software