Foxtable(狐表)用户栏目专家坐堂 → 请教个统计问题


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

主题:请教个统计问题

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


加好友 发短信 一级勋章
等级:狐仙 帖子:9875 积分:57590 威望:0 精华:15 注册:2008/9/1 9:45:00
  发帖心情 Post By:2011/5/7 8:46:00 [显示全部帖子]

你这表结构不严谨吧.

If e.DataCol.Name = "品种" Then
    If e.DataRow.IsNULL("状态b") Then
        Dim Index As Integer
        Index = Tables("表A").FindRow(e.DataRow)
        If Index > -1 Then '如果找到此行
            Tables("表A").Position = Index '将焦点定位到此行
        End If
        e.DataRow("数量")= e.DataRow("数量")-e.DataRow("数量")
    End If
End If

你刷新品种列试试,对不对的?

 回到顶部