-------------------------------- 代码是这样写的
If e.DataCol.Name = "状态" AndAlso e.NewValue IsNot Nothing Then
If not( e.NewValue = "在途" OrElse e.NewValue = "车辆已安排" OrElse e.NewValue = "等待付款" ) Then
msgbox("抱歉!您输入的状态命令不存在.请重新输入")
e.NewValue = ""
e.Cancel = True
End If
End If
--------------------------------------但是出现以错语
这是乍过回事吗
[此贴子已经被作者于2016/4/24 10:24:51编辑过]