ACC: "Can't Bind Name '[XXX]'" Error with Crosstab QueryLast reviewed: May 28, 1997Article ID: Q91710 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. If you create a crosstab query using an implicit parameter [XXX] in a WHERE clause (criteria), you may receive the following error message:
In Microsoft Access 97: The Microsoft Jet database engine does not recognize '[XXX]' as a valid field name or expression. In earlier versions of Microsoft Access: Can't bind name '[XXX]'If you use an explicit parameter, the query works as expected.
CAUSEA crosstab query dynamically generates column names. Therefore, Microsoft Access cannot tell whether [XXX] is referring to a parameter or a column name until after the query is bound. When you build a graph, Microsoft Access uses a crosstab to build the data to graph. If the query is a parameter query, you have to define the parameters explicitly, as you would have to for a normal crosstab query.
RESOLUTIONTo avoid this error, define [XXX] as an explicit parameter by adding it to the Query Parameters dialog box.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about crosstab queries, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q104758 TITLE : ACC: Error with Linked Crosstab Subform or Subreport ARTICLE-ID: Q109939 TITLE : ACC: Creating a Crosstab Query with Multiple Value FieldsFor more information about parameter queries, type "parameter queries" in the Office Assistant, click Search, and then click to view "Troubleshoot parameter queries." |
Keywords : kberrmsg kbusage QryCross
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |