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?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement