在表事件DataColChanging 中我输入了下面的代码
If e.DataCol.Name = "货位号" Then
hwh = e.DataTable.Find("货位号 = '" & e.NewValue & "'")
If hwh IsNot Nothing Then
MessageBox.Show("此货位号已经存在!")
e.Cancel = True
Else
e.NewValue = 77777777 And e.NewValue = 88888888 And e.NewValue = 99999999
MessageBox.Show("此货位号可以试用!")
End If
End If
我的想法是除了77777777,88888888,99999999,这3个货位可以重复放货,其他货位只能放一种货物,但是执行了一下,写入什么都变成0,保存之后会变成数字0,想请教下大大,我的代码哪里出问题了
[此贴子已经被作者于2018/1/22 13:11:24编辑过]