Hi Kevin,
There is a "DiscardSavedData" property for the OCX that should be set to
True. I think that this will force a refresh of the data.
Bob Holmes
Quote:
> I have a VB program with code to launch a crystal report e.g.
> frmReports.CrystalReport1.ReportFileName = "c:\Total.rpt"
> frmReports.CrystalReport1.CopiesToPrinter = 1
> frmReports.CrystalReport1.DataFiles(0) = "dbpath"
> frmReports.CrystalReport1.Destination = 0
> frmReports.CrystalReport1.Action = 1
> The only problem with this code is that I am unable to refresh the
> crystal report after new data is aded to the database.The old data
> appears in the report. Is there a command that will force the report to
> be refreshed each time it is generated.
> Thanks
> Kevin