-- [求助]组合框
老师好,组合框字段输入不正确不要报错只提示。想增加一个判断。
Dim tj As String = "Select * Fr om {" & e.sender.text & "}"
Dim c As String
If e.Sender.Text = "入库" Then
c = ("编号|47|记录日期|71|入库单编号|71|开票日期")
Else If e.Sender.Text = "列设置" Then
c = ("表名|170|设置|88")
End If
Tables("系统_Table6").Fill(tj, "数据库", False) \'加载Table
Tables("系统_Table6").SetColVisibleWidth(c)
Tables("系统_Table6").ShowCheckBox = True
Dim dz_FilterCol As WinForm.CheckedComboBox = e.Form.Controls("复选4")
dz_FilterCol.Items.Clear
dz_FilterCol.text = Nothing
For Each C1 As Col In Tables(e.Form.Name & "_Table6").Cols
dz_FilterCol.Items.Add(C1.Name)
Next