参考:
http://www.foxtable.com/webhelp/topics/1451.htm
项目人员考核表datacolchanged事件
Select Case e.DataCol.Name
Case "年度","季度"
Dim dr As DataRow = e.DataRow
Dim pr As DataRow
If dr.IsNull("考核年度") OrElse dr.IsNull("考核季度") Then
dr("考核得分") = Nothing
Else
Dim filter As String
filter = "年度 = '" & dr("考核年度") & "' And 季度 = '" & dr("考核季度") & "'"
pr = DataTables("项目季度加分申请表").Find(filter)
If pr IsNot Nothing Then
dr("考核得分") = pr("最终得分")
End If
End If
End Select