以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  sqlfind不能查找_identify吗?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=72704)

--  作者:李睿涵
--  发布时间:2015/8/4 20:29:00
--  sqlfind不能查找_identify吗?
图方便,想把_identify作为主键使用
对datatables做sqlfind查后台的_Identtify,语句为:
Dim DR As DataRow = DataTables("考试清单").sqlFind("_IDENTIFY = 74")
If dr Is Nothing Then
msgbox(0)
End If
(其中74是我用弹窗显示了当前行的_identify的值,即肯定存在值为74的_identify)
运行后,弹窗0,把sqlfind改为find,则不弹窗

难道_identify不能作为后台查找的依据吗?

--  作者:大红袍
--  发布时间:2015/8/4 21:09:00
--  

加上中括号

 

Dim DR As DataRow = DataTables("表A").sqlFind("[_IDENTIFY] = 1")
msgbox(dr is nothing)