PDA

Click to See Complete Forum and Search --> : crystal reports in Vb6


Caro
Jan 23rd, 2000, 12:59 AM
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?

ACO
Jul 10th, 2001, 04:30 AM
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.