ACC: Error with Linked Crosstab Subform or SubreportID: Q104758
|
Moderate: 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.
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.
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.
Query: Xtab
--------------------
Type: Crosstab Query
Field: EmployeeID
Total: Group By
Crosstab: Row Heading
NOTE: In versions 1.1 and 2.0, there is a space in the Employee ID
field name.
Field: ShipVia
NOTE: In versions 1.1 and 2.0, there is a space in the Ship Via
field name.
Total: Group By
Crosstab: Column Heading
Field: Freight
Total: Sum
Crosstab: Value
For more information about Setting the ColumnHeadings property, search the Help Index for "ColumnHeadings Property," or ask the Microsoft Access 97 Office Assistant.
Keywords : kberrmsg RptSub
Version : 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 27, 1999