ACC2000: Error with Linked Crosstab Subform or Subreport (209218)
The information in this article applies to:
This article was previously published under Q209218 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you print or preview a report, you may receive the following error
message:
You can't use a pass-through query or a non-fixed-column crosstab query as a record source for a subform or subreport.
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. For example, the following steps show how to fix the problem created in the "Steps to Reproduce Behavior" section of this article:
- Change the Field in the Xtab query (created in step 1 of the "Steps to Reproduce Behavior" section) from ShipVia to Shipper: "Shipper " & [ShipVia]
- On the View menu, click Properties.
- In the Column Headings box, type
"Shipper 1","Shipper 2", "Shipper 3"
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.
REFERENCESFor more information about the ColumnHeadings property, click Microsoft Access Help on the Help menu, type ColumnHeadings property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 12/12/2002 |
---|
Keywords: | kbdta kberrmsg kbprb KB209218 |
---|
|