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


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

主题:[求助] filter 问题

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


加好友 发短信
等级:超级版主 帖子:109678 积分:558082 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/11/3 16:28:00 [显示全部帖子]

fill填充无法去重,这种方式复制数据才可以:http://www.foxtable.com/webhelp/scr/1533.htm

Dim Cols1() As String = {"GSSAG_PO","Customer"}
Dim d As Date = Forms("Mainfrm").Controls("startdate").value
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(Cols2(i)) = dr1(Cols1(i))
            Next
            dr2("Orderdate") = d
        End If
    End If
Next

 回到顶部