ACC2000: Error When Running Crosstab Query with a ParameterID: Q209778
|
If you create a crosstab query that uses an implicit parameter [XXX] in a WHERE clause (criteria), you may receive the following error message:
If you use an explicit parameter, the query works as expected.The Microsoft Jet database engine does not recognize '[XXX]' as a valid field name or expression.
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 typical crosstab query.
To avoid this error, define [XXX] as an explicit parameter by adding it to the Query Parameters dialog box.
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
[Enter an Amount:]
For additional information about crosstab queries, please see the following articles in the Microsoft Knowledge Base:
Q209218 ACC2000: Error with Linked Crosstab Subform or Subreport
Q209143 ACC2000: Creating a Crosstab Query with Multiple Value FieldsFor more information about parameter queries, click Microsoft Access Help on the Help menu, type "troubleshoot parameter queries" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Additional query words: prb
Keywords : kberrmsg kbdta QryCross
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999