下面代码怎么修改,整改下面2段代码呢?求助
项目为空时,进度输入100,提示:
不能小于已完成的进度 再提示 项目不能为空! ,想实现不提示:提示:不能小于已完成的进度
项目不为空时,
进度输入100 失败! 提示:不能小于已完成的进度 想实现能输入100
If e.DataCol.name = "进度" AndAlso e.DataRow.RowState <> DataRowState.Added Then
If e.DataRow.OriginalValue(e.DataCol.name) <> Nothing AndAlso e.newvalue < e.DataRow.OriginalValue(e.DataCol.name) Then
msgbox("不能小于已完成的进度")
e.cancel = True
End If
If e.DataRow("项目") = Nothing Then
If e.newvalue = 100 Then
msgbox("项目不能为空!")
e.cancel = True
End If
End If
End If
[此贴子已经被作者于2018/12/25 22:02:07编辑过]