You don't bind a control to a variable, you use it as a variable. Don't put anything in the ControlSource. To access the value of the Option Group in your code, use something like: THISFORM.MyOptionGroup.Value
HTH
>I am trying to an Option Group (Radio Button) Control on a form. I would like to have a variable (m.DemoFlag) as the ControlSource so that I can use it in coding for the different options selected. When I enter m.demoflag in the ControlSource for the control I get the error 'Error w\ OptionGroup1 - Value; Data type mismatch. Unbinding Object OptionGroup1'. What am I missing?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only