Foxtable(狐表)用户栏目专家坐堂 → 更新另外一张表的某行数据的问题


  共有1905人关注过本帖平板打印复制链接

主题:更新另外一张表的某行数据的问题

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


加好友 发短信
等级:四尾狐 帖子:821 积分:5760 威望:0 精华:0 注册:2015/2/3 22:19:00
更新另外一张表的某行数据的问题  发帖心情 Post By:2019/3/15 17:27:00 [只看该作者]

If e.DataRow("已收款") <> Nothing AndAlso e.DataRow("收款日期") <> Nothing
e.DataRow.Locked = True
Dim bh As String = e.DataRow("编号")
Dim dr As DataRow = DataTables("客户数据").SQLfind("编号 = '"& bh &"'and 日期 = #" & e.DataRow("服务日期") & "#")
If dr IsNot Nothing Then

With DataTables("表B")
dr("付款状态") = "已付"
End With    ‘找到表B的某行数据后,赋值给 “付款状态”列,但没有实现。。。

End If
End If

 回到顶部