Report shows old data: how to refresh?


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?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


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.

kender_aAuthor Commented:
No, it’s not a Crystal Report. I’m using a VB6 DataReport.
Éric MoreauSenior .Net ConsultantCommented:
You need to close your command and re-open it. See the example at;en-us;244779&Product=vb6

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kender_aAuthor Commented:
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!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.