Results 1 to 6 of 6

Thread: refresh datareport?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    refresh datareport?

    Hi,

    I have created a DataReport that is bound to a DataEnvironment for it's recordsource and I have a problem with the report not refreshing until I close out of the application and get back in.

    For example, before I first run the report, I can enter some data and then run the report and it's fine. Then, if I close the report (not the application), change or add data, then run the report again, it still only shows the previous data, without the latest updates. It only shows once I close out of the application completely and then get back in and run the report.

    Any ideas?

    Thanks,

    Dan

    Visual Studio 2010

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Private Sub cmdShowReport_Click()
    2.   Dim dr As New DataReport1
    3.  
    4.   Set dr.DataSource = DE1.rsTest 'not sure about this line
    5.  
    6.   dr.Show
    7. End Sub

    try something like that

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    62

    Re: refresh datareport?

    after dr.show
    try with dr.refresh

    Hiran

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    62

    Re: refresh datareport?

    sorry... before dr.show... try with dr.refresh

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: refresh datareport?

    Moved to reporting section

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: refresh datareport?

    You may try a client-side cursor also.. or requery the recordset before showing...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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