http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=14923
这个帖子里的问题
相关代码如下:
If e.IsFocusCell Then
Select Case e.col.name
Case "考核内容"
Tables("现场检查").cols("考核内容").ComboList = DataTables("绩效考核项").GetComboListString("考核内容", "岗位 = '" & e.Row("岗位") & "'")
Case "考核序号"
If e.Row("考核内容") IsNot Nothing Then
Tables("现场检查").cols("考核序号").ComboList = DataTables("绩效考核项").GetComboListString("序号", "岗位 = '" & e.Row("岗位") & "' and 考核内容 = '" & e.Row("考核内容") & "'")
Else
Tables("现场检查").cols("考核序号").ComboList = DataTables("绩效考核项").GetComboListString("序号", "岗位 = '" & e.Row("岗位") & "'")
End If
End Select
End If
由于是通过岗位筛选的 而我绩效考核项里 最前面几条规定是全公司通用的
我的下拉内容只是 该岗位的 怎么样再包括全公司通用的?

此主题相关图片如下:2.jpg
[此贴子已经被作者于2011-12-7 14:10:55编辑过]