OptionButton object (Access)

An option button on a form or report is a stand-alone control used to display a Yes/No value from an underlying record source.

Remarks

When you select or clear an option button that's bound to a Yes/No field, Microsoft Access displays the value in the underlying table according to the field's Format property (Yes/No, True / False, or On/Off).

You can also use option buttons in an option group to display values to choose from.

It's also possible to use an unbound option button in a custom dialog box to accept user input.

Events

Name
AfterUpdate
BeforeUpdate
Click
DblClick
Enter
Exit
GotFocus
KeyDown
KeyPress
KeyUp
LostFocus
MouseDown
MouseMove
MouseUp

Methods

Name
Move
Requery
SetFocus
SizeToFit

Properties

Name
AddColon
AfterUpdate
Application
AutoLabel
BeforeUpdate
BorderColor
BorderShade
BorderStyle
BorderThemeColorIndex
BorderTint
BorderWidth
BottomPadding
ColumnHidden
ColumnOrder
ColumnWidth
Controls
ControlSource
ControlTipText
ControlType
DefaultValue
DisplayWhen
Enabled
EventProcPrefix
GridlineColor
GridlineShade
GridlineStyleBottom
GridlineStyleLeft
GridlineStyleRight
GridlineStyleTop
GridlineThemeColorIndex
GridlineTint
GridlineWidthBottom
GridlineWidthLeft
GridlineWidthRight
GridlineWidthTop
Height
HelpContextId
HideDuplicates
HorizontalAnchor
InSelection
IsVisible
LabelAlign
LabelX
LabelY
Layout
LayoutID
Left
LeftPadding
Locked
Name
OldBorderStyle
OldValue
OnClick
OnDblClick
OnEnter
OnExit
OnGotFocus
OnKeyDown
OnKeyPress
OnKeyUp
OnLostFocus
OnMouseDown
OnMouseMove
OnMouseUp
OptionValue
Parent
Properties
ReadingOrder
RightPadding
Section
ShortcutMenuBar
SpecialEffect
StatusBarText
TabIndex
TabStop
Tag
Top
TopPadding
TripleState
ValidationRule
ValidationText
Value
VerticalAnchor
Visible
Width

See also

OptionButton Object Members Access Object Model Reference