Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unselect radio button

Status
Not open for further replies.

Moogles

MIS
Oct 6, 2002
37
US
How do I set the radio button on and off when I click everytime?

TIA
 
try this on option1_click event
If otption1.value =true then
option1.value =false
else
option1.value=false
end if
 
Just an easy way:
Private Sub Option1_Click()
Option1.Value= Not Option1.Value
End Sub

Regards,
Carlos Paiva
 
Thanks,Abaka and Carlos.

The code does not quite work, but they point me to the right direction.

I guess when option1 clicks, the result should end with the button selected. Therefore I move my code (option1.value = false)to the get focus event of other object, which is a list box. This way I achieve the result I wanted.

Again,I appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top