Results 1 to 9 of 9

Thread: crystal report error 20515

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    crystal report error 20515

    i have write the following codes to run the crystal report...

    cr1.Connect = "DSN=abcserver;uid=abc;pwd=abc"
    cr1.ReportFileName = App.Path & "\reports\rpt_pol_to.rpt"
    cr1.SelectionFormula = "{DTL_RECEIVED.DR_NO} = " & txt_no
    cr1.Action = 0

    i m getting the following error


    run time error 20515
    error in file (file name)
    error in formula <record selection>
    the remaing text does not appear..

    plz help me

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: crystal report error 20515

    Moved to reporting section

  3. #3
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: crystal report error 20515

    error in file (file name)
    reports\rpt_pol_to.rpt"
    First check your report file name it is correct or not???
    You are using incorrect formula read crystal report tutorial at my signature for Cr Formula.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Re: crystal report error 20515

    i write the same style

  5. #5
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Arrow Re: crystal report error 20515

    Quote Originally Posted by shahid
    i write the same style
    I am telling you the check the report name, That I mention
    in bold part in my previous Post.Check the File Name is it correct or not??

  6. #6
    New Member
    Join Date
    Feb 2009
    Posts
    2

    Re: crystal report error 20515

    Hi, I am new to the forum ...i am facing the similar issue for crystal report when i am migrating an application to 2003 server from 2000 server . application is running fine on 2000 server but giving error on 2003 server. I am getting Crystal rpt error 20515 when running on new server

  7. #7
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: crystal report error 20515

    If the field is String type then you have to enclose between '
    Code:
    "{DTL_RECEIVED.DR_NO} = '" & txt_no & "'"

  8. #8
    New Member
    Join Date
    Jun 2006
    Posts
    4

    Re: crystal report error 20515

    run time error 20515
    error in file (file name)
    error in formula <record selection>
    crystel report 8

  9. #9
    New Member
    Join Date
    Jun 2006
    Posts
    4

    Re: crystal report error 20515

    run time error 20515
    error in file (file name)
    error in formula <record selection>
    crystal report 8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width