PRA: Exception Error Referencing Application Object on NT 4.0Last reviewed: April 8, 1997Article ID: Q161332 |
97
WINDOWS
kberrmsg
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. When you reference the Application object of an Automation server, such as Microsoft Access 97, Microsoft Excel 97, or Microsoft Word 97, you receive the following error message on Microsoft Windows NT 4.0, Service Pack 1:
An application error has occurred and an application error log is being generated.The error message also references the executable file for the application that was running the Automation code, such as MSACCESS.EXE.
RESOLUTIONThere are two ways to work around this problem:
Method 1Install Microsoft Windows NT 4.0, Service Pack 2. This problem only occurs on Microsoft Windows NT 4.0, Service Pack 1.
Method 2Do not use early binding to reference the Application object. Early binding occurs when you declare a variable as an application-defined object type, for example:
Dim xlobj as Excel.ApplicationUse late binding instead. Late binding occurs when you declare a variable as an object rather than an application, for example:
Dim xlobj as Object Set xlobj = CreateObject("Excel.Application")For more information about early and late binding, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q147816 TITLE : INF: Using Microsoft Access as an Automation Server STATUSMicrosoft has confirmed this to be a problem in Microsoft NT version 4.0, Service Pack 1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce ProblemWARNING: Following these steps will cause an exception error on your computer. Make sure you save and close any open work on your computer before following these steps.
REFERENCESFor more information about Creating Automation Objects, search the Help Index for "New keyword" or "CreateObject function."
|
KBCategory: kberrmsg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |