ACC: Error with Linked Crosstab Subform or Subreport (104758)
The information in this article applies to:
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q104758
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
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.
The crosstab query underlying a subform or subreport must have
fixed column headings.
Reserved error (-1001); there is no message for this error.
CAUSE
Unless a crosstab query uses fixed column headings, you cannot preview or
print a main report with a bound subreport that is based on a crosstab
query.
RESOLUTION
To 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.
REFERENCES
For more information about Setting the ColumnHeadings property, search the
Help Index for "ColumnHeadings Property," or ask the Microsoft Access 97
Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kberrmsg kbprb KB104758 |
---|
|