Results 1 to 2 of 2

Thread: crystal reports in Vb6

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203

    Post

    I am using a SelectionFormula when running a report in VB6. If I cut and paste it from the immediate window into crystal report - it works fine BUT when run from VB using the same string NOTHING happens. If I blank out the slectFormula line the report works OK from VB.So i'm obviously running the correct report, but it doens't like the selct criteria from VB but is OK with it directly in the report. I need to be able to change it at run-time from the VB program. How can I debug this?

  2. #2
    New Member
    Join Date
    Jul 2001
    Posts
    1
    I had the exactly the same problem, make sure the selection formula is empty in the crystal reports program.

    In VB do not use the "selectionformula", use "replaceselectionformula"

    You should find this will solve your problem.

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