Option Button?? Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I posted this same question in another discussion group, but I
actually meant to post it on this one.

My question is: Why doesnt this work. I know it works for a check box but I
dont know how to make it to do the same function using the option buttons.

Private Sub OptionButton1_Click()
Me.TextBox1.Enabled = Not Me.OptionButton1.Value
Me.TextBox2.Enabled = Not Me.OptionButton1.Value
End Sub
 
If you're clicking on the optionbutton, aren't you always turning it on?

Maybe using
Private Sub OptionButton1_Change()
would be better.
 

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

Back
Top