OL97: How to Use an Ampersand in a Form Name, Menu or Control (261343)



The information in this article applies to:

  • Microsoft Outlook 97

This article was previously published under Q261343

SUMMARY

This article describes how to use an ampersand (&) in a form name, menu or control.

MORE INFORMATION

When you attempt to have an ampersand (&) appear in a form name, custom menu name or control name, it is necessary to use two ampersands (&&).

A single ampersand is used to designate an access or accelerator key. When you view a form name with a single ampersand in it, the character immediately following the ampersand is underlined and that character is that form's associated access key.

When you use an access key, you can click a menu or a control if you press ALT and type a designated character. When the menu is open, you can click a command by pressing ALT and the letter (the access key) that is assigned to the command. For example, ALT+E then P clicks Paste from the Edit menu because the letter "P" is the access key for the Paste command. Access key assignments appear as an underlined letter in the menu command caption.

To use an ampersand in a custom form name:
  1. Open and customize a form that you want to publish.
  2. On the Tools menu, click Forms, and then click Publish Form.
  3. In the Display Name box, type the form name by using two ampersands.
When you use "B && B" as the form name, the form name is "B & B".

NOTE: If you view the form title when you click a form in the Choose Form or Design Form box, the title of the form appears with both ampersands. In the example above, the form appears as "B & B" in a menu, but as "B && B" in the Choose Form or Design Form box.

REFERENCES

For additional information about using ampersands, click the article number below to view the article in the Microsoft Knowledge Base:

125892 WD: Ampersand Displays Incorrectly in Drop-Down Form Field


Modification Type:MajorLast Reviewed:10/27/2000
Keywords:kbhowto kbprogramming KB261343