以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  就二条记录,明明不重复,这样写怎么就能找到呢?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=116868)

--  作者:xxfoxtable
--  发布时间:2018/4/1 21:13:00
--  就二条记录,明明不重复,这样写怎么就能找到呢?

Dim bh As DataRow=DataTables("商品信息表").sqlfind("商品编号=\'"& txt3.text &"\' and 客户编号=\'" & txt1.text &"\' And _identify<>\'"& Vars("identify") &"\'")

我这样写是不是有错误呢?

[此贴子已经被作者于2018/4/1 21:20:22编辑过]

--  作者:有点甜
--  发布时间:2018/4/1 22:03:00
--  

1、msgbox条件看看

 

msgbox("商品编号=\'"& txt3.text &"\' and 客户编号=\'" & txt1.text &"\' And _identify<>\'"& Vars("identify") &"\'")

 

2、sqlFind是查询后台数据,是保存了的数据,你去你数据库那里看看具体数据

[此贴子已经被作者于2018/4/1 22:03:27编辑过]