1、“年龄”不能为空,参考:http://www.foxtable.com/webhelp/scr/0624.htm,看示例五
2、Select Case e.DataCol.Name
Case "在读","年龄"
If e.DataRow("在读") = True Then
e.DataRow("GS602") = 100
Else
If e.DataRow.IsNull("年龄") Then
e.DataRow("GS602") = Nothing
ElseIf e.DataRow("年龄")<=18 Then
e.DataRow("GS602") = 100 '年龄小于18则补助金额为100
Else
e.DataRow("GS602") =180
End If
End If
End Select
[此贴子已经被作者于2017/10/13 20:22:39编辑过]