How do I select an Option button using code?

  • Thread starter Thread starter Ayo
  • Start date Start date
A

Ayo

I have an option group with two option button. I am trying to select one of
them using code. I tried:
Me.OptProject.Enabled=True
and
Me.OptProject.SetFocus
Neither worked. Any ideas?
Thanks
Ayo
 
Set the Value of the option group to the OptionValue of the option button.

This kind of thing:
Me.Frame0 = Me.OptProject.OptionValue
 
Hi

I can't see the point in this - whatever the option case event is then you
could do it on the event that sets the code.

But

Me.OptionGroupName.Value = 1
Or
Me.OptionGroupName.Value = 2

This will not action the group event just set the focus
 

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