Skip to content

Latest commit

 

History

History
191 lines (168 loc) · 8.62 KB

Access.CommandButton.md

File metadata and controls

191 lines (168 loc) · 8.62 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
CommandButton object (Access)
vbaac10.chm10554
vbaac10.chm10554
Access.CommandButton
25e7c0b7-03c1-dffe-8f52-4ec59739f6b8
03/05/2019
medium

CommandButton object (Access)

This object corresponds to a command button. A command button on a form can start an action or a set of actions. For example, you could create a command button that opens another form. To make a command button do something, you write a macro or event procedure and attach it to the button's OnClick property.

Remarks

Control Tool
Screenshot of the Print Form command button. Screenshot of the command button that corresponds to the Command Button object.

You can display text on a command button by setting its Caption property, or you can display a picture by setting its Picture property.

Note

You can create over 30 different types of command buttons with the Command Button Wizard. When you use the Command Button Wizard, Microsoft Access creates the button and the event procedure for you.

Events

Methods

Properties

See also

[!includeSupport and feedback]