Desselecting Option buttons in a Option Group

A

Ayo

How do I unselect all the option buttons in an Option Group so that no option
button is selected?
 
A

Arvin Meyer [MVP]

If you want it empty when you start, clear the DefaultValue property on the
Data tab of the Property Sheet.

If you want to clear it at runtime, use some code like:

Private Sub Frame21_Click()
Me.Frame21 = Null
End Sub

and when you click on the option group frame, it will clear all values.
Remember to use your own control name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top