PRB: VisData Returns Incorrect Number of RecordsLast reviewed: June 2, 1997Article ID: Q169445 |
The information in this article applies to:
SYMPTOMSWhen entering SQL statements in Visual Basic 5.0 Visual Data Manager (VisData), the record count may be incorrect. The same SQL statement entered in Visual Basic 4.0 Data Manager will return the correct number of records.
CAUSEAll records do appear in some circumstances, such as with the DBGrid control, Data Manager, etc., because in these circumstances all records need to be retrieved to be displayed to the user, in which case there is no need to explicitly call MoveLast.
RESOLUTIONAlways go the last record in VisData or issue a MoveLast of a recordset variable in order to get the correct record count using the DBGrid.
STATUS
This behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorWithin VisData:
REFERENCESFor additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q109053 TITLE : PRB: Using RecordCount with VB Dynasets, Snapshots, and Tables |
Keywords : vb5all kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |