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



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)
  • Microsoft Office Access 2003

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.

CAUSE

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

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.

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


Modification Type:MajorLast Reviewed:2/24/2004
Keywords:kbDriver kbCommandLine kbDatabase kbProvider kbClient kbQuery kbAppDev kberrmsg kbprb KB834858 kbAudDeveloper