ACC: Cannot Set ColumnHeadings Property of Crosstab Using CodeID: Q155667
|
The online Help topic for the ColumnHeadings property reads as follows:
You can set this property using the query property sheet or Visual
Basic.
You can set this property using the query property sheet, a query's SQL
view, or Access Basic.
The documentation is incorrect. The ColumnHeadings property cannot be set using Visual Basic for Applications (or Access Basic in version 2.0).
The ColumnHeadings property is not an exposed property of the QueryDef object. It can be created and then appended to the QueryDef's properties collection, but it will have no effect on the actual column headings for the crosstab query.
You can change the column headings in a crosstab query by using one of the
following methods:
Q155489 ACC: Changing Column Headings in a Crosstab Query Using Code
For more information about the ColumnHeadings property , search for
"ColumnHeadings property," using the Microsoft Access for Windows 95 Help
Index.
For more information about SQL property of a QueryDef object, search for "Querydef objects," and then "SQL property" using the Microsoft Access 7.0 Help Index.
Additional query words:
Keywords : kbusage
Version : WINDOWS:2.0,7.0
Platform : WINDOWS
Issue type :
Last Reviewed: July 14, 1999