以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 如何保存时候检查关联表数据 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=140617) |
-- 作者:有点蓝 -- 发布时间:2019/9/10 9:12:00 -- if datatables("订单明细").find("订单号=\'" & tables("订单主表 ").current("订单号") & "\'") is nothing then msgbox("没有明细") else if datatables("订单明细").find("订单号=\'" & tables("订单主表 ").current("订单号") & "\' and (产品名称 is null or 数量 isnull)") isnot nothing then msgbox("产品名称列或数量列为空") else tables("订单主表 ").current.save end if
|
-- 作者:有点蓝 -- 发布时间:2019/9/10 14:03:00 -- 遍历所有行,调用类似2楼的代码进行判断 |