Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.32 KB

Access.Page.Caption.md

File metadata and controls

37 lines (22 loc) · 1.32 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Page.Caption property (Access)
vbaac10.chm12148
vbaac10.chm12148
Access.Page.Caption
7f1b5038-4543-c373-96e9-135102cdd6e6
03/05/2019
medium

Page.Caption property (Access)

Gets or sets the text that appears at the top of the page. Read/write String.

Syntax

expression.Caption

expression A variable that represents a Page object.

Remarks

The Caption property is a string expression that can contain up to 2,048 characters.

If you don't set a caption for a form, button, or label, Microsoft Access will assign the object a unique name based on the object, such as Form1.

Use the Caption property to assign an access key to a label or command button. In the caption, include an ampersand (&) immediately preceding the character that you want to use as an access key. The character will be underlined. You can press Alt plus the underlined character to move the focus to that control on a form.

Include two ampersands (&&) in the setting for a caption if you want to display an ampersand itself in the caption text. For example, to display Save & Exit, you should type Save && Exit in the Caption property box.

[!includeSupport and feedback]