Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Problem with Datareport


Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2002, 09:06 AM
Beginner
Guest
 
Posts: n/a
Default Problem with Datareport




Hi

Unable to preview all the records from a recordset using Data reports in VB 6.0 . The program works perfectly when I run this for the first time I enter VB 6.0. And also it works perfectly when I debug the program step by step. I feel I should use either refresh or set command before I use rpt.show code.

I have used following codes.
------------------------------------------------------------------------------------
Private Sub cmdPreview_Click()
Call Summary 'To create a record set during run time'
DataEnvironment1.Connection2.ConnectionString = frmEstimate.StatusBar1.Panels(1).Text 'To select .mdb runtime'
rptSummary.Refresh
rptSummary.Show vbModal 'To Preview the report'
Set DataEnvironment1 = Nothing

End Sub
------------------------------------------------------------------------------------
Can any body give me the solution please?
Reply With Quote
  #2  
Old 01-07-2002, 10:38 PM
axion
Guest
 
Posts: n/a
Default

just a thought, put a break on the .Show vbModal part and/or the Set DataEnvironment1 = Nothing part and step through the code, u'll probably find that even if the new form is shown modally, execution will continue and data environment is destroyed before the report is finished
Reply With Quote
  #3  
Old 01-08-2002, 09:01 AM
Beginner
Guest
 
Posts: n/a
Default Data Report

Sorry, I didn't get you.

How do I put a break on .Show VbModal? What is the command to break and resume the task?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->