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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data display problem with Crystal

Status
Not open for further replies.

krill

Programmer
Jan 16, 2001
38
AU
Hi Chaps

At present I have developed an application using VB6 using Crystal 8.5 for reporting.All is fine..but I have a form that has a series of text boxs with information displayed. I then have a button that fies off a crystal report that displays the data that is displayed on the form. If I run it once everything shows..if I then run it again there is no data displayed on the crystal report.

eg. Set crxRpt = icu
icu.title.SetText ("ICU Statistics")
icu.txtDenVal.SetText (frmICUHRNstat.txtDen)
icu.txtNoInfecVal.SetText (frmICUHRNstat.txtInf)
icu.txtRate.SetText (frmICUHRNstat.txtRate)
icu.txtU95.SetText (frmICUHRNstat.txtUp)
icu.txtL95.SetText (frmICUHRNstat.txtLow)
icu.txtExpectVal.SetText (frmICUHRNstat.txtEx)
icu.txtExVal.SetText (frmICUHRNstat.txtExRate)
icu.txtPVal.SetText (frmICUHRNstat.txtP)
icu.txtZVal.SetText (frmICUHRNstat.txtZ)


Screen.MousePointer = vbHourglass
CRViewer1.ReportSource = crxRpt
CRViewer1.ViewReport
Screen.MousePointer = vbDefault


Obviously there is more code ..but I hope you guys will get the general idea...


Any idea

Thanks
 
Hi

Try putting

icu.DiscardSavedData

before populating the fields

hope it helps
 
You beauty!!!! Works a charm..I own you a beer..next time you are in Brisbane give me a yell:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top