Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: CR does not show updated data from SQL Table Post Reply Post New Topic
Author Message
Najeeb
Newbie
Newbie


Joined: 21 Apr 2008
Location: India
Online Status: Offline
Posts: 6
Quote Najeeb Replybullet Topic: CR does not show updated data from SQL Table
    Posted: 21 Apr 2008 at 3:40am
Please note the code bellow

Private Sub Command1_Click()
CR.ReportFileName = "C:\Newreprt.rpt"
CR.Connect = "DSN = ayaz\ayaz;UID = sa;PWD =;DSQ = LabSoft"
CR.Action = 1
End Sub

I am in a strange situtation that  report file used in the abouve code does not display updated data from SQL table, rather preview of report is shown with old data that are available at desing time of report.

How ever, when I used another file, which I created earlier, where the same SQL server and same table is conneted works fine.

I dont see any difference of these two report files

Can any one help me?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 21 Apr 2008 at 8:51am
In the one that's not working, you need to turn off "Save Data With Report".
 
-Dell
IP IP Logged
Najeeb
Newbie
Newbie


Joined: 21 Apr 2008
Location: India
Online Status: Offline
Posts: 6
Quote Najeeb Replybullet Posted: 24 Apr 2008 at 3:20am
That's it!

Thank you for you support



IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.