Solved

Report shows old data: how to refresh?

Posted on 2003-11-12
4
504 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

820 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