BUG:Wrong Default Value in Remote Data Object MaxRows Property

Last reviewed: October 25, 1996
Article ID: Q149765
The information in this article applies to:
  • Enterprise Editions of Microsoft Visual Basic, 32-bit only, for Windows, version 4.0

SYMPTOMS

Some ODBC drivers require the MaxRows property of the Remote Data Object to be set to 0. The default value for this property is -1.

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The ODBC specification for the MaxRows property is 0. Some drivers that detect a MaxRows property set to -1 automatically change this property to 0. However, other drivers require the property to be 0 and may return an error if the property is set to another value.

Steps to Reproduce Behavior

  1. Start 32-bit Visual Basic 4.0. If it is already running, on the File menu, click New Project.

  2. Add a Remote Data Control to the Form1 form.

  3. In the Properties window for the Remote Data Control, check the MaxRows property. The default property is -1 instead of 0.


Additional reference words: 4.00 vb4win vb432 RDO RDC
KBCategory: kbusage kbbuglist
KBSubcategory: APrgDataODBC




THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 25, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.