ACC97: Code from "Building Applications Manual" Requires Office 8.0 Object Library (224349)
The information in this article applies to:
This article was previously published under Q224349 Advanced: Requires expert coding, interoperability, and multiuser skills.
SYMPTOMS
On pages 35 through 37 of the Building Applications with Microsoft Access 97 manual, there is a discussion titled "Working with Command Bars in Code." If you try to implement the code within this section of the manual, you may receive the following error message:
Compile error:
User-defined type not defined.
CAUSE
The Building Applications with Microsoft Access 97 does not explain that in order for the code to work, you must create a reference to the necessary external library.
RESOLUTION
Reference the Microsoft Office 8.0 Object Library. To do this, open your code module in Design view, and then on the Tools menu, click References. Scroll down the list of references until you find Microsoft Office 8.0 Object Library. Click to select the check box for this reference, and then click OK to close the References dialog box.
REFERENCESFor additional information about referencing libraries, click the article number below
to view the article in the Microsoft Knowledge Base:
175484 ACC97: References That You Must Set When You Work with Microsoft
Modification Type: | Major | Last Reviewed: | 9/25/2003 |
---|
Keywords: | kbprb KB224349 |
---|
|