组合框验证规则

Combobox Validation Rule

大家好,可以帮我解答一下吗?我有一个 FormcomboboxPanel。当我在 Combobox (item1 = yes,item2=no) item 2 中选择时,我需要面板制作 visible=false(所有项目都有),以及在面板中不可见的项目(radiobutton, textbox 等)中的 table数据库为此项目写入空值。打扰一下!因为我的语法错误 ;) 这是我的表格

ComboBox1_SelectedIndexChanged写代码

If ComboBox1.SelectedIndex = 0 Then 'Also take ComboBox1.SelectedItem='Yes'
            Panel1.Visible = True
        Else
            Panel1.Visible = False
 If RadioButton1.Checked = False Then
           Label1.Text="NULL"
        End If
        End If

将标签值传递到数据库。