I've an Access 2010 form that contains 2 radio buttons. One for Yes and one for No in Option Group. How do I get the selected value?
i.e. - whether user selected Yes or No, using VBA.
Option Groups return an integer value starting at 1 and going up from there. If your option group is called Fld_Opt_Method then try Me.Fld_Opt_Method
:
If Me.Fld_Opt_Method = 1 Then msgbox "first option"
If Me.Fld_Opt_Method = 2 Then msgbox "second option"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With