以文本方式查看主题

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

--  作者:有点色
--  发布时间:2017/2/22 19:47:00
--  

 你CurrentChanged事件的代码肯定有问题。请加上表名 e.Table 的判断

 

 同时

 

SystemReady = False

Tables("监理财务台帐_Table8").AddNew

SystemReady = True


--  作者:有点色
--  发布时间:2017/2/23 2:09:00
--  
\'\'费用明细分类账流水帐
Dim drt As New List(of DataRow)
With DataTables("费用明细分类账")
    For Each nm As String In.GetValues("归属部门") \'找出每个产品的第一行数据, 添加到集合drs中
        Dim rr As DataRow = .Find("归属部门 = \'" & nm & "\'","[_SortKey]")
        If rr IsNot Nothing Then
            .DataCols("收入金额").RaiseDataColChanged(rr) \'重置每个产品的第一行
        End If
    Next
End With