If e.DataCol.name = "项目_起时" Then
If e.NewValue = Nothing Then
e.DataRow("年月") = Nothing
Else
e.DataRow("年月") = format(e.newvalue, "yyyy-MM")
End If
End If
If e.DataCol.name = "项目_编号" Then
If e.NewValue = Nothing Then
e.DataRow("标志") = Nothing
Else
e.DataRow("标志") = "项目资料"
End If
End If
If e.DataCol.name = "成本_结算日期" Then
If e.NewValue = Nothing Then
e.DataRow("年月") = Nothing
Else
e.DataRow("年月") = format(e.newvalue, "yyyy-MM")
End If
End If
If e.DataCol.name = "成本_所属项目" Then
If e.NewValue = Nothing Then
e.DataRow("标志") = Nothing
Else
e.DataRow("标志") ="材料成本"
End If
End If
在一个表事件中,年月列 和标志列出现问题,重置列后要不前面没了,要么后面没了,请问代码有问题吗?