Results 1 to 5 of 5

Thread: need run twice to get right report?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    313

    need run twice to get right report?

    My CR connect to a table called Report_table. I let user to choose order, then

    I open a recordset and load data to Report_table and use vb6 code to run report.

    I got everything right except: when I run CR first time, I got report in random order(not the order user selected). I close it and select the same thing. THis time I got everything right(in order).
    What could be the problem?

    Thanks a lot.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: need run twice to get right report?

    Is the "Save Data With Report" option checked?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    313

    Re: need run twice to get right report?

    Quote Originally Posted by brucevde
    Is the "Save Data With Report" option checked?
    I checked and still need run twice to get right one.

    thank you.

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: need run twice to get right report?

    Sorry, the option should be unchecked. If you are using Crystal's CRAXDRT objects to manipulate the report within VB, the Report object has a DiscardSavedData method.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2001
    Posts
    313

    Re: need run twice to get right report?

    Quote Originally Posted by brucevde
    Sorry, the option should be unchecked. If you are using Crystal's CRAXDRT objects to manipulate the report within VB, the Report object has a DiscardSavedData method.
    I added code before .action:
    CrystalReport1.DiscardSavedData = True

    still have the same 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