Solved

Report shows old data: how to refresh?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2013 combo box not working 3 38
Hide vba in gp 7 79
Help me. 3 43
VB6 ListBox Question 4 30
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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

930 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

10 Experts available now in Live!

Get 1:1 Help Now