ACC: VBA Functions Break in Database with Missing References
Article ID: 160870
Article Last Modified on 1/19/2007
APPLIES TO
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
- Microsoft Excel 97 Standard Edition
- Microsoft Word 97 Standard Edition
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.
Additional query words: Now Time Date Left Right Mid Str Format Trim LTrim RTrim
Keywords: kbprb KB160870