Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No data refresh

Status
Not open for further replies.

kimtp

Programmer
Jun 15, 2002
310
US
Using CR with Vb6. Designed the report in CR and then did a Project, Add CR, From existing report. My problem is when I add data the report does not pick up the change. The changes have been made to the DB and when I exit the program and restart, the data shows up in the report.

Here is the code so far:

frmPayments.Refresh
With crvPayments 'CRViewer
.ReportSource = crPayments
.Refresh
.ViewReport
End With

I call the report with frmPayments.show

Any help is appreciated

Thanks

Kim
 
I am niot much of a VB programmer but I believe there is a property called "discard saved data" which must be set to true so that the report will refresh.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
You must be sure that the option "Save the data with reports" under File menu in Crystal Reports is not selected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top