Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you open a data access page in Internet Explorer: "Undefined function '{FunctionName}' in expression"


View products that this article applies to.

This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp).

Moderate: Requires basic macro, coding, and interoperability skills.

For a Microsoft Access 2000 version of this article, see 304755 (http://support.microsoft.com/kb/304755/ ) .
For a Microsoft Access 2002 version of this article, see 274379 (http://support.microsoft.com/kb/274379/ ) .
For a Microsoft Access 2000 version of this article, see 304755 (http://support.microsoft.com/kb/304755/ ) .
For a Microsoft Access 2002 version of this article, see 274379 (http://support.microsoft.com/kb/274379/ ) .

↑ Back to the top


Symptoms

When you open a data access page by using Microsoft Internet Explorer, and that data access page contains a function that is not available outside Access, you may receive the following error message:
Data Provider failed executing a provider command.
The previous message is then followed by the following message:
Undefined function '{FunctionName}' in expression.
However, when you open a data access page by using Access, the error messages do not appear.

↑ Back to the top


Cause

When you open a data access page by using Internet Explorer, certain Access-specific functions are not available. As a result, you may receive the error messages that are in the "Symptoms" section.

For example, you receive the error messages if a data access page is based on a query that has an expression that contains the Nz() function, the EuroConvert() function, the Eval() function, or a user-defined function.

You may also receive the error messages if you use one of these functions in a control (such as a text box) on a data access page.

↑ Back to the top


Workaround

Notes
  • This is a known limitation of data access pages.
  • You cannot create or modify data access pages in Microsoft Office Access 2007.
You can work around this problem with two of these functions, Nz() and Euroconvert(). Nz() and Euroconvert() may be added as methods of the Microsoft Data Source Control (MSODSC) object. If you want to use the Nz() method or the Euroconvert() method in a data access page, you can use the following syntax:

Euroconvert Method Syntax
MSODSC.Euroconvert(50,"FRF","EUR",False,3)
Nz Method Syntax
MSODSC.Nz([NumericValueHere],0)

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB824279, kbbug, kbquery, kbdap, kbdapscript, kberrmsg, kbprogramming, kbvba

↑ Back to the top

Article Info
Article ID : 824279
Revision : 3
Created on : 5/31/2007
Published on : 5/31/2007
Exists online : False
Views : 332