ACC2000: OpenDatabase Method Does Not Use Jet LoginTimeout (202037)
The information in this article applies to:
This article was previously published under Q202037 This article applies only to a Microsoft Access database (.mdb).
Moderate: Requires basic macro, coding, and interoperability skills.
IMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
SYMPTOMS
The default ODBC Login timeout setting for Microsoft Jet databases is 20
and is stored, depending on the version, in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWAREMicrosoft\Jet\4.0\Engines\ODBC\LoginTimeout
You can change this value from the default of 20; however, the new value
will not be used in the OpenDatabase method of the current database, as in the following line:
Set db=OpenDatabase("",false,false,"odbc;DSN=TEST" )
RESOLUTION
If you have changed the registry key to something other than the default of 20, and you want to use that new value with the OpenDatabase method, you should include the DBEngine object, as in the following line:
set db=DBEngine.OpenDatabase("",false,false,"odbc;DSN=TEST" )
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbbug kbnofix KB202037 |
---|
|