ACC: VBA Functions Break in Database with Missing References (160870)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
- Microsoft Excel 97 for Windows
- Microsoft Word 97 for Windows
This article was previously published under Q160870 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
If you have a procedure that contains a Visual Basic for Applications
function, and your database contains a reference to a missing object
library or type library, you may receive the following error message when
you compile your modules or run the procedure.
In Microsoft Access 97, Microsoft Excel 97, Microsoft Word 97
Compile Error:
Can't find project or library
In Microsoft Access 7.0
Can't find project or library
CAUSE
Your database contains a reference to a database, type library, or object
library that is marked as "Missing:" in the References dialog box.
RESOLUTION
Follow these steps to remove the missing reference:
- Open your database.
- Open a module in Design view.
- On the Tools menu, click References.
- Click to clear the check box for the type library or object library
marked as "Missing:."
An alternative to removing the reference is to restore the referenced file
to the path specified in the References dialog box. If the referenced file
is in a new location, clear the "Missing:" reference and create a new
reference to the file in its new folder.
REFERENCES
For a complete list of Visual Basic for Applications functions, search the
Help Index for "functions, reference topics," or ask the Microsoft Access
97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 11/28/2003 |
---|
Keywords: | kbprb KB160870 |
---|
|