Partager via


How to: Set the Number of Option Buttons in an Option Button Group

When you create an option button group on a form, two option buttons are included by default. You can determine how many option buttons are in a group by changing the ButtonCount property.

To set the number of option buttons in a group

  • Set the ButtonCount Property to the desired number of option buttons.

    For example, to have a group of six option buttons, set the ButtonCount property of the option button group to 6.

The Value Property of the group indicates which of the buttons has been chosen. For example, if you choos the fourth option button in a group of six option buttons, the value of the option button group is 4.

If the group's ControlSource Property is a character field, or if the Value property is set to a character value before the form is run, the group's Value property is the caption of the selected option button.

See Also

Tasks

How to: Store User Choices to a Table Using Option Buttons

Concepts

Setting Option Button Properties

Controls and Objects Created in Earlier Versions

Controls and Data Concepts

Reference

Controls for Accepting Input

Other Resources

Using Controls