以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  禁止输入重复值的问题?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=53058)

--  作者:身份不明
--  发布时间:2014/6/28 13:27:00
--  禁止输入重复值的问题?

代码:

 

If e.DataCol.Name = "订单号" Then
    Dim
dr As DataRow
    dr = e.
DataTable.Find("订单号 = \'" & e.NewValue & "\'")
   
If dr IsNot Nothing Then
        MessageBox.Show(
"此订单号已经存在!")
        e.Cancel =
True
    End
If
End
If

 

如果我用的加载树,每页加载20行,如何修改对后台的数据有效呢?


--  作者:Bin
--  发布时间:2014/6/28 13:42:00
--  
FIND 改为SQLFIND