PRB: User Connection Object Connect Property Remains PopulatedLast reviewed: December 8, 1997Article ID: Q177592 |
The information in this article applies to:
SYMPTOMSWhen a UserConnection object is declared at the global level, the userid and password stored in the Connect property remains populated after the connection is closed.
RESOLUTIONTo make sure the userid and password in Connect property is cleared after closing the connection, you can set the user connection object to Nothing right after closing the connection, such as:
uc.close SET uc = NothingYou could also store the initial value of the Connect property to a variable, and replace the Connect property with that value after the connection is closed, such as the following:
Dim myConnect As String myConnect = uc.Connect uc.EstablishConnection uc.Close uc.Connect = myConnect STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce BehaviorTask 1: Create the UserConnection
Task 21: Build the Visual Basic Code
REFERENCESFor additional information about User Connection Designer, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q166281 TITLE : HOWTO: Create and Implement a UserConnection(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Adrian Chiang, Microsoft Corporation Keywords : vb5all Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |