Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

An unhandled exception error occurs when you build or run a client application that runs a query against a Microsoft Jet data source


View products that this article applies to.

Symptoms

When you build or run a client application (such as a Microsoft Visual C++ application) that runs an SQL statement on a Microsoft Jet data source, the client application may fail with an unhandled exception. You may receive an error message that is similar to the following:
Unknown
The error message may also contain the following error code:
0x80040e14
This problem may occur even if the client application runs a valid SQL statement.

↑ Back to the top


Cause

This problem occurs because the Microsoft Jet database driver .dll file (Msjtes40.dll) is not correctly registered.

↑ Back to the top


Resolution

To resolve the problem, register the Msjtes40.dll file. To do so, follow these steps:
  1. Close the client application that runs the SQL statement on the Microsoft Jet data source.
  2. At a command prompt, run the following command:
    regsvr32.exe Full Path of the Msjtes40.dll file
    Note By default, the Msjtes40.dll file is located in the System32 folder in the Windows directory of your computer. For example, the full path of the Msjtes40.dll file on your computer might be C:\WINNT\System32\Msjtes40.dll. To locate the Windows directory on your computer, run the following command at a command prompt:
    echo %WINDIR%
  3. Click OK.

↑ Back to the top


References

For additional information about a related problem, click the following article number to view the article in the Microsoft Knowledge Base:
317708� ACC2002: "Unknown" error message when you open a table

↑ Back to the top


Keywords: KB834858, kbprb, kberrmsg, kbappdev, kbquery, kbclient, kbprovider, kbdatabase, kbcommandline, kbdriver

↑ Back to the top

Article Info
Article ID : 834858
Revision : 6
Created on : 2/24/2004
Published on : 2/24/2004
Exists online : False
Views : 262