Article ID: 283806 - Last Review: November 27, 2007 - Revision: 5.4 Visual Basic for Applications (VBA) functions break in a database with missing referencesThis article was previously published under Q283806 Moderate: Requires basic macro, coding, and interoperability
skills. This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). For a Microsoft Access 2000 version of this article, see 208218 (http://support.microsoft.com/kb/208218/EN-US/ ) . For a Microsoft Access 97 version of this article,
see
160870
(http://support.microsoft.com/kb/160870/
)
. On This PageSYMPTOMS 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 one of the following error
messages when you compile your modules or run the procedure:
Error message 1 Your Microsoft Access database or project contains a
missing or broken reference to the file <filename>. * To ensure that your database or project works properly, you must fix this reference. * To learn how to fix this reference, click Help. Error message 2 Compile Error: 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: <referencename> in the References dialog box. RESOLUTION To remove the missing reference, follow these steps:
NOTE: In an Access run-time application, you cannot view references from a menu. However, the following article demonstrates how to view references using code: 209849
(http://support.microsoft.com/kb/209849/
)
How to loop through references to view their properties
MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCES
For additional information about another problem that could cause the
first error message, click the following article number to view the article in the Microsoft Knowledge Base:
275110
(http://support.microsoft.com/kb/275110/
)
"Undefined function in expression" error message when you open
a query that references a function
| Article Translations
|
Back to the top
