以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]同步删除两列一样的行 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=150029) |
-- 作者:miaoqingqing -- 发布时间:2020/5/19 9:24:00 -- [求助]同步删除两列一样的行 表A删除一行时,第一列值等于 中国 第二列值等于 广东 表B,第一列 第二列 等于 中国 广东的行也自动删除
|
-- 作者:有点蓝 -- 发布时间:2020/5/19 9:49:00 -- 到DataRowDeleting事件处理即可:http://www.foxtable.com/webhelp/topics/0633.htm dim dr as datarow = datatables("表B").find("第一列=\'" & e.datarow("第一列") & "\' and 第二列=\'" & e.datarow("第二列") & "\'") if dr isnot nothing then dr.delete
|