Solved

Report shows old data: how to refresh?

Posted on 2003-11-12
4
506 Views
Last Modified: 2010-05-01
Colleagues,

This is probably a trivial problem for those who know. I have a report in my project, which is linked to a table through a command object. When I display the report for the first time, it shows the correct contents of the table. Then I update the table, and display the report again. It still shows the old data. How can I refresh it?

Thanks!

Nick
0
Comment
Question by:kender_a
[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
  • 2
4 Comments
 
LVL 1

Expert Comment

by:mazfar
ID: 9735758
Nick

If this is a report made in crystal reports than you most probably have clicked the option 'Save Data With Report' in First drop down menu (probably File menu). Uncheck this option and you should see the refreshed data.

Ciao
0
 
LVL 1

Author Comment

by:kender_a
ID: 9735848
No, it’s not a Crystal Report. I’m using a VB6 DataReport.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 125 total points
ID: 9736695
You need to close your command and re-open it. See the example at http://support.microsoft.com/default.aspx?scid=kb;en-us;244779&Product=vb6
0
 
LVL 1

Author Comment

by:kender_a
ID: 9741757
Hi emoreau!

I found a different solution myself - I just refresh the recordset, which belongs to command. Anyways, your answer is worth the points. Thanks!

Nick
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

739 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