ACC: Incorrect Characters in Crosstab Query Column Headings

ID: Q94192


The information in this article applies to:


SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

If the data in a field that is used as a column heading in a crosstab query contains a period (.), an exclamation mark (!), or a bracket ([ or ]), the character will be changed to an underscore character (_) in the column heading. This does not happen if the same data is used as a row heading.


CAUSE

Queries can be used as input to other queries, forms, or reports, and therefore column headings must be formatted as field names. Because field names cannot contain periods (.), exclamation marks (!), or a bracket ([ or ]), these characters are converted to underscore characters (_) in the column headings of the crosstab query.

Field names also cannot contain control characters (ASCII values 0 through 32). Additionally, the backquote character (`) cannot be used in field names in Microsoft Access 2.0 or later. Although these characters may appear in the column headings of the crosstab query (usually as a square for control characters) instead of being converted to an underscore, you will not be able to use the query as input to other queries and reports because of the invalid field names.


STATUS

This behavior is by design.


REFERENCES

For more information about the guidelines for naming fields, controls, and objects, search the Help Index for "naming conventions," or ask the Microsoft Access 97 Office Assistant.

For more information about crosstab queries, search the Help Index for "crosstab queries," or ask the Microsoft Access 97 Office Assistant.

Additional query words:


Keywords          : kbusage QryCross 
Version           : WINDOWS:1.0,1.1,2.0,7.0,97
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: March 14, 1999