以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- IF语句求助 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=42459) |
-- 作者:syzchl -- 发布时间:2013/11/12 15:03:00 -- IF语句求助 If e.DataCol.name = "设备ID号" Then If e.NewValue > "" Then If DataTables("库存1").Find("设备号 = \'" & e.NewValue & "\'")and DataTables("库存2").Find("设备号 = \'" & e.NewValue & "\'") Is Nothing Then MessageBox.show("该设备库存不存在", "提示") e.cancel =True End If End If End If 麻烦帮看下语句哪里出问题了?
|
-- 作者:Bin -- 发布时间:2013/11/12 15:17:00 -- DataTables("库存1").Find("设备号 = \'" & e.NewValue & "\'") is Nothing and DataTables("库存2").Find("设备号 = \'" & e.NewValue & "\'") is Nothing then |