Results 1 to 4 of 4

Thread: Crystal reports data different from Access Data

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Posts
    12

    Angry Crystal reports data different from Access Data

    I'm trying to generate a report in VB6 by using Crystal connect to an Access Database.

    And I use DSN as the connection. My query is so complicate, so i decide to create a temporary table that has the same field as in the crystal. My crystal report connect to that temporary table.

    Whenever I want to generate a report, I pick some data from my flex grid and Insert them into the temporary table, then show my report.

    the problem is that the data record in the crystal is different from data Access Database. But when I click a refresh button at the top of Crystal page, it become the same as in Access Database.

    I don't know if anyone can help me to write a code to make it refresh automatically. I don't want the user to click the refresh
    button everytime.


    Thanks,

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    You need to uncheck the checkbox under File > Options... > Reporting tab
    "Save data with report" in Crystal Reports.

    Otherwise your report has a static snapshot of the data you
    were viewing when you designed the report. That is why you
    need to click the refresh button.

    HTH.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Posts
    12

    I lost my last Record

    Thank you for your advise. It now works. The Crystal refresh itself and discard the saved data.

    But I still have a bit problem that I can't see my last record on the Crystall Report viewer when generating a report.

    For example : If I've got 4 records, it shows only 3.
    If I've got 20 records, it shows only 19.

    I realy don't understand what happen to it.

    I hope you expereinced with this problem.

    Thanks in advance.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    No, I have not come accross that issue before. There could be
    some many different things, to pinpoint this one will be hard.
    Need more info.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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