CommandButton Object [Access 2003 VBA Language Reference]

CommandButton
Properties

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.

Control: Tool:
Control Control

Note  This control should not be confused with the Dynamic HTML command button control used on a data access page. For information about a command button control on a data access page, see Command Button Control (Data Access Pages).

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

Tip

Properties | AddColon Property | AutoLabel Property | AutoRepeat Property | Cancel Property | Caption Property | Controls Property | ControlTipText Property | ControlType Property | Default Property | DisplayWhen Property | Enabled Property | EventProcPrefix Property | FontBold Property | FontItalic Property | FontName Property | FontSize Property | FontUnderline Property | FontWeight Property | ForeColor Property | Height Property | HelpContextId Property | Hyperlink Property | HyperlinkAddress Property | HyperlinkSubAddress Property | InSelection Property | IsVisible Property | LabelAlign Property | LabelX Property | LabelY Property | Left Property | Name Property | ObjectPalette Property | OldValue Property | OnClick Property | OnDblClick Property | OnEnter Property | OnExit Property | OnGotFocus Property | OnKeyDown Property | OnKeyPress Property | OnKeyUp Property | OnLostFocus Property | OnMouseDown Property | OnMouseMove Property | OnMouseUp Property | OnPush Property | Picture Property | PictureData Property | PictureType Property | Properties Property | ReadingOrder Property | Section Property | ShortcutMenuBar Property | StatusBarText Property | TabIndex Property | TabStop Property | Tag Property | Top Property | Transparent Property | Visible Property | Width Property

Methods | Move Method | Requery Method | SetFocus Method | SizeToFit Method

Events | Click Event | DblClick Event | Enter Event | Exit Event | GotFocus Event | KeyDown Event | KeyPress Event | KeyUp Event | LostFocus Event | MouseDown Event | MouseMove Event | MouseUp Event

Parent Objects

Child Objects | Properties Object