老师好,下面代码报错。
此主题相关图片如下:2025-05-06 14 27 51.png

If e.DataCol.Name = "实际归还日期" Then ' If e.NewValue Is Nothing Then
e.DataRow("归还准时情况") = Nothing
ElseIf e.NewValue > e.DataRow("预计归还日期") Then
e.DataRow("归还准时情况") = ("延误")
ElseIf e.NewValue < e.DataRow("预计归还日期") Then
e.DataRow("归还准时情况") = ("提前")
Else
e.DataRow("预计归还日期") = ("准时") '
End If
End If