Article ID: 275110 - Last Review: August 11, 2004 - Revision: 4.0 BUG: You receive an "Undefined Function in Expression" error message when you open a query that references a functionThis article was previously published under Q275110 For a Microsoft Office Access 2003 version of this
article, see
824277
(http://support.microsoft.com/kb/824277/
)
. Moderate: Requires basic macro, coding, and interoperability
skills. This article applies only to a Microsoft Access database (.mdb). SYMPTOMS When you try to open a query that contains a function, you
receive both of the following error messages. When you open any subsequent
query, you receive only the second error. Your Microsoft Access database or project contains a missing or broken reference to the file '<FileName>'.
Undefined function '<FunctionName>' in expression.
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:
STATUSMicrosoft has confirmed that this is a problem in
Access.
MORE INFORMATION When you open a database in Microsoft Access 2002, you are
informed about any problems with referencing external libraries and projects.
When the database contains a broken reference to a library or project at the
time that you try to run a query that calls a function, Access 2002 displays
the first message that is mentioned in the "Symptoms" section of this article.
After you click OK to this message, you immediately receive the second message that
is mentioned in the "Symptoms" section of this article. After you receive the first message, the first message is not displayed again. Even if you have other queries that contain calls to functions, these other queries only return the second message until you close the database and then reopened it. CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. Steps 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: 283806
(http://support.microsoft.com/kb/283806/
)
Visual Basic for Applications (VBA) functions break in a database with missing references
| Article Translations
|
Back to the top
