以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 关于判断关联表字表的后台数据 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=142654) |
-- 作者:有点蓝 -- 发布时间:2019/11/3 20:12:00 -- If e.DataCol.name = "已领完" Then Dim pr As DataRow = e.DataRow.GetParentRow("领料主表") If pr IsNot Nothing Then Dim dr As DataRow = e.datatable.sqlfind("领料单号 = \'" & e.Table.Current("领料单号") & "\' and 已领完 = false") \'SqlServer改为:已领完 = 0 pr("已领完") = (dr is nothing) End If End If
|