ACC: Error with Linked Crosstab Subform or SubreportLast reviewed: May 7, 1997Article ID: Q104758 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you print or preview a report, you may receive the following error message.
In Microsoft Access 97 and 7.0: You can't use a pass-through query or a non-fixed-column crosstab query as a record source for a subform or subreport. In Microsoft Access 2.0: The crosstab query underlying a subform or subreport must have fixed column headings. In Microsoft Access 1.1: Reserved error (-1001); there is no message for this error. CAUSEYou cannot preview or print a main report with a bound subreport that is based on a crosstab query unless the crosstab query uses fixed column headings.
RESOLUTIONTo work around this behavior, add fixed column headings to the crosstab query's properties as follows.
In Microsoft Access 97, 7.0 and 2.0: With the crosstab query in Design view, click Query Properties on the View menu. In the ColumnHeadings property, type the column headings for your query. In Microsoft Access version 1.1: With the crosstab query in Design view, click Query Properties on the View menu. In the FixedColumnHeadings property, type the column headings for your query.Another workaround is to delete the LinkChildFields and LinkMasterFields properties of the subreport. You will then be able to run the report; however, the report will show every record in the subreport.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about Setting the ColumnHeadings property, search the Help Index for "ColumnHeadings Property," or ask the Microsoft Access 97 Office Assistant. |
Keywords : kberrmsg kbusage RptSub
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |