>I am trying to setup a OptionGroup that relates to logical field in the ControlSource. When I set the ControlSource to the logical field and run the form, I get the following error:"Error with 'Field Name' Value: Data type mismatch. Unbinding object." Can somebody help me setup the OptionGroup to accept a logical field.
You should unbind the optiongroup (empty ControlSource) and add code to e.g. to Form.Refresh method:
This.Optiongroup1.Value=IIF(table1.logfield=.t.,1,2)
and to OptionGroup.InteractiveChange event
Replace table1.logfield With IIF(this.value=1,.t.,.f.)
Edward Pikman
Independent Consultant