Solved

Datareport in visual basic 6.0

Posted on 2002-06-14
5
223 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
5 Comments
 
LVL 51

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

756 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