Foxtable(狐表)用户栏目专家坐堂 → [求助] filter 问题


  共有2198人关注过本帖树形打印复制链接

主题:[求助] filter 问题

帅哥哟,离线,有人找我吗?
y2287958
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐神 帖子:4752 积分:34568 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2018/11/4 13:54:00 [显示全部帖子]

Dim Cols1() As String = {"GSSAG_PO","Customer"}
Dim d As Date = Forms("Mainfrm").Controls("startdate").value
If d <> Nothing
    For Each dr1 As DataRow In DataTables("Orderlist").Select("[Orderdate] = #" & d & "#")
        Dim dr2 As DataRow = DataTables("Packinglist").Find("GSSAG_PO='" & dr1("GSSAG_PO") & "' and Customer='" & dr1("Customer") & "'")
        If dr2 IsNot Nothing Then
            Dim Result As DialogResult
            Result = MessageBox.Show("重复,是否继续?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
            If Result = DialogResult.Yes Then
                For i As Integer = 0 To Cols1.Length -1
                    dr2(Cols1(i)) = dr1(Cols1(i))
                Next
                dr2("Orderdate") = d
            End If
        End If
    Next
End If


 回到顶部