以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 关于删除重复 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=79870) |
-- 作者:大红袍 -- 发布时间:2016/1/11 14:55:00 -- Dim tb As Table = e.Form.Controls("Table1").Table Dim i As Integer For i = tb.DataTable.DataRows.Count-1 To 0 Step -1 Dim dr As DataRow = tb.DataTable.DataRows(i) Dim dr2 As DataRow = tb.DataTable.Find("(VIN=\'" & dr("VIN") & "\' or VIN is null) and (工单编号=\'" & dr("工单编号") & "\' or 工单编号 is null) and 项目代码 =\'" & dr("项目代码") & "\' or 项目代码 is null) And _Identify <> " & dr("_Identify")) If dr2 IsNot Nothing Then dr2.Delete End If Next |
-- 作者:大红袍 -- 发布时间:2016/1/11 15:11:00 -- 删除重复也可以这样
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=76545&replyID=529794&skin=1
|