Results 1 to 4 of 4

Thread: Data Enviroment and Data Reports

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    68

    Unhappy

    I have an application that I am writing and it contains a data enviroment and a data report.

    I have linked the data report to the data enviroment but the data that is reported is old data the data that was captured when I created the command in the Data Enviroment.

    How do I refresh the data before I report using it?

    Thanks
    Simon

  2. #2
    Junior Member
    Join Date
    Oct 2000
    Posts
    29

    Talking Data Report Master!

    Hello, I am the Data Report Master! LOL

    If you are really interested in doing this, I usually bypass the DE altogether! The Data Report does not need the Data Environment to run, but then you must understand SHAPE Recordsets!

    Email me at [email protected]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    68
    say that I want to keep what I have got but just want to refresh the data source each time before I run the report?

  4. #4
    Lively Member
    Join Date
    Mar 2000
    Location
    U.S.A.
    Posts
    75
    Try this it seemed to work for me....

    Code:
    Load DataEnvironment1
    With DataEnvironment1
        If .rsCommand1_Grouping.State Then .rsCommand1_Grouping.Close
        .Commands!Command1_Grouping.CommandText = SQL_Statement_Here
        .Command1_Grouping
    End With
    
    DataReport1.Refresh
    If DataReport1.Visible = False Then DataReport1.Show
    
    Unload DataEnvironment1
    The next time you reload the report it should show the updated info.

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