|
-
Dec 14th, 2001, 06:17 AM
#1
Thread Starter
Lively Member
Crystal Reports
Hi,
I have this code to show a report after inserting and deleting some records in the database, but the report is not updated when I show it for the first time.
Could anyone tell me why? Or another way to show the report?
Private Sub lga_Click()
Dim Data As String
Prepara_Lista_Geral Data ‘This is the procedure that runs a Sql statment and writes in a table in Access
CrystalReport1.ReportFileName = App.Path & "\lista de accionistas1.rpt"
CrystalReport1.WindowState = crptMaximized
CrystalReport1.DiscardSavedData = True
CrystalReport1.Action = 1
End Sub
-
Dec 14th, 2001, 06:23 AM
#2
Junior Member
in the crystal reports in the first menu there is an option to save records with report may be checked on..unclick it and run the show...
-
Dec 14th, 2001, 06:23 AM
#3
Addicted Member
hi there ,
try this :
Code:
CrystalReport1.ReportFileName = App.Path & "\lista de accionistas1.rpt"
CrystalReport1.RetrieveDataFiles
CrystalReport1.Destination = crptToWindow
CrystalReport1.WindowState = crptMaximized
CrystalReport1.PrintReport
-
Dec 14th, 2001, 06:26 AM
#4
New Member
Hey!!
use
reportname.refresh property to update the contains of the report
Pari
-
Dec 14th, 2001, 06:40 AM
#5
Addicted Member
Originally posted by pari
Hey!!
use
reportname.refresh property to update the contains of the report
Pari
do u mean refresh button ?
-
Dec 14th, 2001, 06:47 AM
#6
Thread Starter
Lively Member
Could you give an example, please.
I don't know the reportname.refresh, but it is exactly what I want to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|