ACC: Allowing an Ampersand to Appear in a Caption (90090)



The information in this article applies to:

  • Microsoft Access 1.0
  • Microsoft Access 1.1
  • Microsoft Access 2.0
  • Microsoft Access for Windows 95 7.0

This article was previously published under Q90090
Novice: Requires knowledge of the user interface on single-user computers.

SUMMARY

A caption containing an ampersand (&) will result in a value that replaces the ampersand with an underscore character (_). For example, entering the caption

   Jack & Jill
				


in the property sheet will result in the following caption on the form or control:

   Jack _Jill
				

MORE INFORMATION

Microsoft Access allows you to underline a character in a caption, giving it ALT key access, by specifying an ampersand before the character that is to be underlined. Because the ampersand appears before the space in the following caption

   Jack & Jill
				


Microsoft Access assumes that the intention is to underline the space following the ampersand.

If an ampersand is to appear in a caption, you must specify two ampersand characters in a row. For example, entering the following caption in the property sheet

   Jack && Jill
				


will result in the following caption in the resulting form or control:

   Jack & Jill
				

Modification Type:MajorLast Reviewed:5/9/2003
Keywords:kbhowto kbusage KB90090