以文本方式查看主题

-  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=75300)

--  作者:农村人
--  发布时间:2015/10/4 11:17:00
--  [求助] 帮忙看看这代码是哪错了,
Dim fl As String = "[打包] = \'" & 1 & "\'"
DataTables("质检").LoadFilter = fl
DataTables("质检").Load

Dim ids As String
For Each dr As DataRow In DataTables("质检").DataRows
    ids = ids & "," & dr("流水编号")
Next
ids= ids.Trim(",")
DataTables("质检清单").LoadFilter = "流水编号 In (" & ids & ")"
DataTables("质检清单").Load()

--  作者:大红袍
--  发布时间:2015/10/4 12:42:00
--  
Dim fl As String = "[打包] = \'" & 1 & "\'"
DataTables("质检").LoadFilter = fl
DataTables("质检").Load

Dim ids As String = "\'\'"
For Each dr As DataRow In DataTables("质检").DataRows
    ids = ids & ",\'" & dr("流水编号") & "\'"
Next
ids= ids.Trim(",")
DataTables("质检清单").LoadFilter = "流水编号 In (" & ids & ")"
DataTables("质检清单").Load()