BUG: Invalid Operation After Setting RDC Resultset = NothingLast reviewed: October 9, 1996Article ID: Q153017 |
The information in this article applies to:
SYMPTOMSExecuting a refresh method against a remote data control after setting the RDC's Resultset property to Nothing can cause one of these errors:
"Invalid operation for forward only cursor" -or- "Unknown error or operation" CAUSEThis error occurs because setting the ResultSet property to Nothing also causes the ResultsetType property to be set to 0. Zero is not a valid setting for the ResultsetType property.
WORKAROUNDTo avoid this problem, set the ResultsetType property to the valid value of 1 after setting the Resultset equal to Nothing. For example, the following code will work correctly and not cause any errors:
Set MSRDC1.Resultset = Nothing MSRDC1.ResultsetType = 1 MSRDC1.Refresh STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps To Reproduce Problem
|
Additional reference words: 4.00 vb4win vb432
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |