Results 1 to 3 of 3

Thread: Error with Crystal Reports

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Ontario, Canada
    Posts
    3

    Question

    In my vb code, I am building a selection formula then setting the selectionformula property. When I try to run the report, I get an error from Crystal (#20510) which says "The program cannot add the formula name you specified". I take the exact string that causes the error and paste it into the record selection formula builder in crystal and run the report with no errors. Using vb6 with crystal 7. I feel the solution is there and I am just not seeing it. I would appreciate hearing some suggestions from anyone who has had similar problems.

  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    KC
    Posts
    72

    Lightbulb

    Maybe what you should use is the ReplaceSelectionFormula method, eg:

    CrystalReport1.ReplaceSelectionFormula NewSelectionFormula


  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Ontario, Canada
    Posts
    3

    Thumbs up

    After I posted this, I happened to find the replaceselectionformula method and tried it... it was the end of my work day, so going to finish it tomorrow... i will let you know if that did the trick. Thanks

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