Results 1 to 2 of 2

Thread: Data Report question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Posts
    80

    Data Report question

    Greetings,

    I have a Data Report that draws data from Data Environment, it works fine the first time I use it. When I change the data in the database table and call up the data report again, it shows the old data.

    How do I get the data report to show the new updated data?

    I am using VB 6.0

    Thanks in advance.

  2. #2
    Fanatic Member vb_dba's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere aloft between the real world and insanity
    Posts
    1,016
    In your code, before you open your report, add a statement similar to the following:
    VB Code:
    1. If DataEnvironment.rsConnection.State <> 0 Then DataEnvironment.rsConnection.Close

    rsConnection is the recordset object of the connection you are using.

    This will refresh your DE.

    Hope this helps,

    Chris
    Chris

    Master Of My Domain
    Got A Question? Look Here First

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