Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("ComboBox1").Value
Dim s As String = DataTables("干警信息").GetComboListString("姓名").replace("|", "','")
cmb.ComboList = DataTables("干警信息").GetComboListString("姓名", "身份属性 = '" & str & "' and 姓名 not in ('" & s & "')")
我采用上面的方式 结果无值
有点甜老师
红色部分为什么要表c呢?
Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("ComboBox1").Value
Dim s As String = DataTables("表C").GetComboListString("关注领域").replace("|", "','")
cmb.ComboList = DataTables("表A").GetComboListString("关注领域", "身份属性 = '" & str & "' and 关注领域 not in ('" & s & "')")