ACC: "Can't Bind Name '[XXX]'" Error with Crosstab QueryID: Q91710
|
Moderate: Requires basic macro, coding, and interoperability skills.
If you create a crosstab query that uses 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.
Can't bind name '[XXX]'
A 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.
To avoid this error, define [XXX] as an explicit parameter by adding it to the Query Parameters dialog box.
This behavior is by design.
Crosstab Query: Query1
---------------------------------
Field: UnitPrice
Total: Group By
Crosstab: Row Heading
Criteria: > [Enter an Amount:]
Field: Discount
Total: Group By
Crosstab: Column Heading
Field: OrderID
Total: Count
Crosstab: Value
For more information about crosstab queries, please see the following
articles in the Microsoft Knowledge Base:
Q104758 ACC: Error with Linked Crosstab Subform or Subreport
Q109939 ACC: Creating a Crosstab Query with Multiple Value Fields
For more information about parameter queries, type parameter queries
in the Office Assistant, click Search, and then click to view
"Troubleshoot parameter queries."
Keywords : kberrmsg QryCross
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 12, 1999