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

Hi,

        I have this code in VB5.0:

Dim FromID as string    'Start IDs list From
Dim ToID as string      'End IDs list
Dim IDStr as string

FromID = Str(ReportQuery.Text1.Text)
IDStr = "{EmpID.ID} >= " & FromID
.
.
.
CrystalsReport1.DataFiles(0) = "C:\BUDGET\BUDGET.MDB"
CrystalsReport1.SelectionFormula = IDStr
.
.
.
Then I got a message saying Error in Formula < Record_Selection>
'{EmpID.ID} >= 123456789'
A string is required here

Rmk: 123456789 is the user input



Mon, 20 Nov 2000 03:00:00 GMT  
 20515 - Error in Formula <Record_Selection> - HELP PLEASE....PLEASE!!!!

put your number in inverted commas (single quote marks). It should work
then

like so : {EmpID.ID} >= '123456789'

hth

Rachel :)
----------

Quote:
> .
> .
> Then I got a message saying Error in Formula < Record_Selection>
> '{EmpID.ID} >= 123456789'
> A string is required here

> Rmk: 123456789 is the user input



Tue, 21 Nov 2000 03:00:00 GMT  
 20515 - Error in Formula <Record_Selection> - HELP PLEASE....PLEASE!!!!

No! 123456789 is a user input field not a fix string!

OGA



Quote:

>put your number in inverted commas (single quote marks). It should work
>then

>like so : {EmpID.ID} >= '123456789'

>hth

>Rachel :)
>----------
>> .
>> .
>> Then I got a message saying Error in Formula < Record_Selection>
>> '{EmpID.ID} >= 123456789'
>> A string is required here

>> Rmk: 123456789 is the user input



Tue, 21 Nov 2000 03:00:00 GMT  
 20515 - Error in Formula <Record_Selection> - HELP PLEASE....PLEASE!!!!

He's on the right lines though - try something like ' & UserInputField & '

or somit like that

Dan
Bristol, England



Tue, 21 Nov 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

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

2. Error 20515 error in formula

3. Help recasting UDT <<PLEASE!>>

4. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

5. >>>>> URGENT: PLEASE HELP <<<<<

6. <<<<<<<<ComboBox>>>>>>>>>>>>

7. Error 20515, on selection formula?

8. HELP >>>>>>WIN API <<<<<<<<<<

9. StreamReader Error - Please help :) <details inside>

10. Can anyone HELP me PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE

11. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

12. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

 

 
Powered by phpBB® Forum Software