Share via


Setting 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 chooses 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

Control Selection for Particular Tasks |Setting Option Button Properties | Using Controls | Controls and Objects | Controls and Data Concepts | Storing User Choices to a Table Using Option Buttons