Problems with otion buttons within a frame...

B

Brad Pears

This is likely a really simply question but I am having real problems with
my option buttons - which I rarely ever ever use.

I have a frame with two option buttons in it. The "optionvalue" property of
the 1st option button is 1 and the "optionvalue" property of the second
option button is 2. When I select one, the other deselects etc.. which is
what I want it to do...

However, I can't seem to check the option button in code to see what it's
value is.. i.e. if option button one has been selected, I want to do
something or if option button 2 has been selected, I want to do something
different.

I am not referring to code in the "gotfocus" event for each option button,
but rather later in some other event code I want to check these values.
What am I supposed to be checking for to see which option button has been
selected??

Thanks,

Brad
 
D

David W

Are you refering to the frame valve or the buttons

Try using like
If Forms!MyFormsName.Frame42.Value=1 Then
Do whatever
Else
Do what ever if its not
End if
 
B

Brad Pears

perfect, that worked!! Thanks for your help!
David W said:
Are you refering to the frame valve or the buttons

Try using like
If Forms!MyFormsName.Frame42.Value=1 Then
Do whatever
Else
Do what ever if its not
End if
 

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