ACC2000: "Undefined Function" Error Message Referencing Column Property (209496)
The information in this article applies to:
This article was previously published under Q209496 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you try to run macro actions that contain a WHERE clause
(ApplyFilter, OpenForm, OpenReport, and FindRecord), and queries that
reference the Column property of a combo box or list box on a form, you may receive the following error message:
Undefined Function '[Forms]![Formname]![Controlname].column' in Expression.
CAUSE
Microsoft Access interprets any text followed by opening and closing parentheses as a user-defined function.
RESOLUTION
If you wrap the expression inside the Eval() function as a text string, Access will consider the entire reference as a whole, and will not try parsing it. For example:
Eval("[Forms]![Formname]![Controlname].column(2)")
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor more information about using the Column property in an expression, click Microsoft Access Help on the
Help menu, type Refer to a column in a list in an expression in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Major | Last Reviewed: | 12/12/2002 |
---|
Keywords: | kbbug kbdta kberrmsg KB209496 |
---|
|