Microsoft KB Archive/191735

= PRB: The Jet VBA File Failed to Initialize When Called =

Article ID: 191735

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 5.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Professional Edition 

-



This article was previously published under Q191735



SYMPTOMS
Some application or driver setups might not perform version checking, and therefore overwrite newer DLLs with an older Msvcrt.dll and Mfc.dll. When this happens and an MFC application tries to open an Access database using MFC DAO, the following error is received:

The Jet VBA file VBAJET.DLL for 16-bit versions, or VBAJET32.DLL for

32- bit versions failed to initialize when called.

This article exemplifies a particular driver setup which causes this error.



CAUSE
Some installation programs replace Msvcrt.dll and Mfc42.dll system files in the System32 folder with:


 * Msvcrt.dll (5.0.0.7128)
 * Mfc42.dll (5.0.0.7128)



RESOLUTION
Replace the Msvcrt.dll (5.0.0.7128) and Mfc42.dll (5.0.0.7128) with Msvcrt.dll (5.0.0.7303) and Mfc42.dll (5.0.0.7303) or newer respectively, obtained from Visual Studio 97 Service Pack 3 or later.

For additional information about the Visual Studio 97 Service Pack 3, please see the following article in the Microsoft Knowledge Base:

170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> Create an Access Database.</li> Create a DSN to access the Database created in step 1.</li> Create an MFC Database application that uses the DSN created in step 2.</li> Install the offending program or overwrite the existing Msvcrt.dll and Mfc42.dll with the older versions.</li> Run the application created in step 3.</li> The following error message appears:

The Jet VBA file VBAJET.DLL for 16-bit versions, or VBAJET32.DLL for

32-bit versions failed to initialize when called.

</li></ol>

Keywords: kb3rdparty kbdatabase kberrmsg kbprb KB191735

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.