Microsoft KB Archive/834858

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

Article ID: 834858

Article Last Modified on 2/24/2004

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition
 * 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:  Close the client application that runs the SQL statement on the Microsoft Jet data source.  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%  Click OK.

