Force Option Button to Selected
Posted on 2001-08-09
I created an Option Frame and put Option Buttons on it - optFirst (OptionValue Property set to 1) and optSecond (OptionValue Property set to 2).
When the Form opens, the Option buttons are gray - none of them (especially the First one) is selected.
Me!optFirst.Value = True (you can't set a value to this object)
Me!optFirst = True (you can't set a value to this object)
Me!frOptFrame!optFirst.Value = True (property Let procedure not defined...)
Help says I can set the Value of the Option Control
"Value Property - You can use the Value property to determine or specify if a control is selected, the selected value or option within the control, the text contained in a text box control, or the value of a custom property.
Check box, option button, and toggle button controls. Determines or specifies whether or not the control is selected."
BUT the example only shows how to read the value
"If Forms!Customers!Credit.Value = False Then"
but doesn't show how to SET it to true.
How do you force the first Option Button to be selected when the Form opens?