Solved

Datareport in visual basic 6.0

Posted on 2002-06-14
5
227 Views
Last Modified: 2013-11-25
i am inserting few records in a table through prog, then i display those records in report. when a new set of records are inserted then i try to display the records i get old set of records in report rather than a new set of records what sort of changes i should make to retrieve new set of records?
0
Comment
Question by:krishnarao-kr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 7077562
Close the Report, clear the memory (if needed) before open it again.
0
 
LVL 2

Accepted Solution

by:
RSivakumar_Sofil earned 50 total points
ID: 7078038
Add the following 3 lines of code in the calling place of the report.

DataEnvironment1.rsAuthors.Open strSql,DataEnvironment1.Connection1, adOpenDynamic
   
DataReport1.Show vbModal

DataEnvironment1.rsAuthors.Close


I assume that the report is bound to DataEnvironment1 as DataSource and Authors as Datamember.


cheers.
0
 
LVL 4

Expert Comment

by:gencross
ID: 7078064
If these do not work post the code you are using to open the report.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7900270
Hi krishnarao-kr,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Split points between: ryancys and RSivakumar_Sofil

krishnarao-kr, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7978311
SpideyMod
Community Support Moderator @Experts Exchange

ryancys points for you at:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20519684.html
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question