Solved

Refreshing ADO not the Greed !!!

Posted on 2000-05-02
3
173 Views
Last Modified: 2010-05-02
Hi

I am getting a live streaming data in an SQL7 Database table every 1sec.

And I have to desplay this streaming data on a Data greed control without refreshing the control but only the ADO Recordset!!!!!!!

A-  What is it best to use :
      1- the Recordset.Resync method or the
      2- the Recordset.Requery method  or
      3-  any  other method?????

How do i do that...?????

Have you any suggestion..........on refreshing ADO and not the Control !!!!!
I am dealing for the fist time with this Methods
0
Comment
Question by:papaioannou
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
wsh2 earned 50 total points
Comment Utility
From MSDN:
--------------------------------------
Use the Resync method to resynchronize records in the current Recordset with the underlying database. This is useful if you are using either a static or forward-only cursor but you want to see any changes in the underlying database.

Use the Requery method to refresh the entire contents of a Recordset object from the data source by reissuing the original command and retrieving the data a second time. Calling this method is equivalent to calling the Close and Open methods in succession. If you are editing the current record or adding a new record, an error occurs.


0
 

Author Comment

by:papaioannou
Comment Utility
Is it possible to write a small code example ???
0
 

Author Comment

by:papaioannou
Comment Utility
have you any code example?????
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 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