Foxtable(狐表)用户栏目专家坐堂 → 现在要用截图中订单合计的汇总数代替订单合计数


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

主题:现在要用截图中订单合计的汇总数代替订单合计数

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


加好友 发短信
等级:四尾狐 帖子:858 积分:6381 威望:0 精华:0 注册:2017/2/13 9:04:00
现在要用截图中订单合计的汇总数代替订单合计数  发帖心情 Post By:2018/5/18 9:05:00 [只看该作者]

现在要用截图中订单合计的汇总数代替订单合计数插入到排产内容中去,要怎么写?
图片点击可在新窗口打开查看此主题相关图片如下:未命名.png
图片点击可在新窗口打开查看

Dim nma() As String = {"物供号","系列名","客款号","颜色","订单合计"} 'A表数据来源列
Dim t As Table = Tables("dbscmx")

For i As Integer = t.TopPosition To t.BottomPosition
    Dim dr As Row = t.rows(i)
    Dim r As Row = Tables("生产计划").addnew()
    Dim str As String = ""
    For n As Integer = 0 To nma.length -1
        str &= dr(nma(n)) & "--"
    Next
    r("排产内容")= str

Next


' Tables("dbscmx").ResumeRedraw()
   
End If

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/18 9:12:00 [只看该作者]

Dim nma() As String = {"物供号","系列名","客款号","颜色"} 'A表数据来源列
Dim t As Table = Tables("dbscmx")


For i As Integer = t.TopPosition To t.BottomPosition
    Dim dr As Row = t.rows(i)
    Dim r As Row = Tables("生产计划").addnew()
    Dim str As String = ""
    For n As Integer = 0 To nma.length -1
        str &= dr(nma(n)) & "--"
    Next
    str &= t.Compute("sum(订单合计)", "xxx列 = '" & dr("xxx列") & "'")
    r("排产内容")= str   
Next


 回到顶部