Foxtable(狐表)用户栏目专家坐堂 → 表间数据传递问题


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

主题:表间数据传递问题

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/10/15 17:13:00 [显示全部帖子]

 DataRowDeleting事件,加入如下代码,删除原本的代码

 

Dim dr As DataRow =e.DataRow.GetParentRow("表A")
If dr IsNot Nothing Then
    Dim fdr As DataRow = e.DataTable.Find("第二列 = '" & e.DataRow("第二列") & "' and 明细分段 is not null and _Identify <> " & e.DataRow("_Identify"), "_sortkey desc")
    If fdr IsNot Nothing Then
        dr("库存分段") = fdr("明细分段")
    End If
End If


 回到顶部