Solved

Report shows old data: how to refresh?

Posted on 2003-11-12
4
498 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
  • 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 69

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now