OFF97: Error in Macro Referencing Remote Data Objects (169719)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Word 97 for Windows
- Microsoft PowerPoint 97 for Windows
- Microsoft Access 97
- Microsoft Office 97 for Windows
This article was previously published under Q169719 SYMPTOMS
If you run a macro that uses objects from the Microsoft Remote Data Object
2.0 library, you may receive the following error message:
Run-time error '429'
ActiveX component can't create object
CAUSE
This behavior occurs because, by design, Visual Basic for Applications
macros cannot directly use objects in the Microsoft Remote Data Object 2.0
library.
NOTE: The Visual Basic Editor allows you to create a reference to the
Microsoft Remote Data Object 2.0 library. The Auto List Members list works
as you create the macro code. However, when you run the macro, you receive
the error message mentioned in the "Symptoms" section.
RESOLUTION
To resolve this behavior, remove any code that references objects in the
Microsoft Remote Data Object 2.0 library.
REFERENCES
For more information about ODBCDirect, click the Office Assistant in the
Visual Basic Editor, type ODBCDirect, click Search, and then click to
view the "What's New in DAO?" topic.
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If Microsoft Help is not installed on your computer,
please see the following article in the Microsoft Knowledge Base:
120802
Office: How to Add/Remove a Single Office
Program or Component
Modification Type: | Minor | Last Reviewed: | 9/13/2006 |
---|
Keywords: | kberrmsg kbprb kbProgramming KB169719 |
---|
|