ACC: "Undefined Function" Err Msg Referencing Column PropertyLast reviewed: May 14, 1997Article ID: Q101673 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. 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. CAUSEMicrosoft Access interprets any text followed by opening and closing parentheses as a user-defined function.
RESOLUTIONIf you wrap the expression inside the Eval() function as a text string, Microsoft Access will consider the entire reference as a whole, and will not attempt to parse it. For example:
Eval("[Forms]![Formname]![Controlname].column(2)") STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 1.x, 2.0, 7.0, and 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it become available.
MORE INFORMATIONNOTE: This problem occurs only when you are attempting to reference a column other than the bound column of the combo box. If you want to reference the bound column of the combo box, just use the control name of the combo box.
Steps to Reproduce Problem
REFERENCESFor more information about using the Column property in an expression, search on "Column property," and then "Refer to a column in a list in an expression" using the Microsoft Access 97 Help Index. |
Keywords : kberrmsg kbusage QryParm
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |