以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 绘制行断判请教? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=118543) |
-- 作者:wakai -- 发布时间:2018/5/5 11:14:00 -- 绘制行断判请教? 如果无子表行,父表则标识颜色,在父表drawcell中代码为 If Tables("包材合同_合同明细表").Rows.Count = 0 Then Tables("包材合同_合同").Style = "黄" End If 以上代码必须选中行才能绘制,请教老师要怎么写,才能 实现打开窗体和新增父表时也能绘制 |
-- 作者:有点蓝 -- 发布时间:2018/5/5 11:20:00 -- If e.Row.DataRow.GetChildRows().Count = 0 Then e.Style = "黄" End If 如果2个表没有关联 If DataTables("合同明细表").Compute("Count(编号)","编号=\'" & e.Row("编号") & "\'") = 0 Then e.Style = "黄" End If |
-- 作者:wakai -- 发布时间:2018/5/5 22:36:00 -- 可以了谢谢蓝老师 |