How to determine if an option button is set?

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

Guest

I have 4 option buttons within a frame (fraDateRange). I want to determine if
option button optLast3Years is set.

The following code is producing an error

If Me!optLast3Years.Value = True Then strData = "Option2 detected "

Thanks for any help.
Seth
 
Seth said:
I have 4 option buttons within a frame (fraDateRange). I want to
determine if option button optLast3Years is set.

The following code is producing an error

If Me!optLast3Years.Value = True Then strData = "Option2 detected "

Thanks for any help.
Seth

When using an option frame you test the value of the frame to see what is
selected, not the individual controls within it.
 
Back
Top