The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.mdb). SYMPTOMSIf 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. CAUSE
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.
RESOLUTIONTo avoid this error, define [XXX] as an explicit parameter by adding it to the Query Parameters dialog box. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor 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 |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |