-- 作者:bestorange
-- 发布时间:2015/9/15 20:34:00
--
Dim cmb As WinForm.ComboBox = e.Sender Dim str As String = e.Form.Controls("ComboBox1").Value
Dim fl As String = e.Form.Controls("ComboBox3").Value
If fl = "主课" then
cmb.ComboList = DataTables("学员一览表").GetComboListString("姓名", "辅导老师 = \'" & str & "\'")
ElseIf fl = "陪练" then
cmb.ComboList = DataTables("学员一览表").GetComboListString("姓名", "陪练老师 = \'" & str & "\'")
ElseIf fl = "辅导" then
cmb.ComboList = DataTables("学员一览表").GetComboListString("姓名", "乐理辅导 = \'" & str & "\'")
ElseIf fl = "听力" then
cmb.ComboList = DataTables("学员一览表").GetComboListString("姓名", "听力辅导 = \'" & str & "\'")
End If
这样吗?
[此贴子已经被作者于2015/9/15 20:44:12编辑过]
|