-- 作者:redpin
-- 发布时间:2022/11/3 8:46:00
--
完整公式
DelFor("C表","记录", "<>" ,"") And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录1","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录2","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录3","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录4","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录5","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录6","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录7","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录8","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录9","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录10","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录11","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录12","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录13","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录14","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录15","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录16","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录17","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录18","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录19","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录20","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录21","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录22","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录23","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录24","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录25","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录26","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录27","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录28","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录29","x_ID", "=" ,"")) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录30","x_ID", "=" ,"")) And DelReptRows("C表","记录") And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",2)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",3)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",4)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",5)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",6)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",7)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",8)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",9)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",10)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",11)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",12)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",13)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",14)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",15)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",16)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",17)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",18)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",19)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",20)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",21)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",22)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",23)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",24)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",25)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",26)) And RecalcRow("C表",1,1,1)
|
-- 作者:redpin
-- 发布时间:2022/11/3 9:29:00
--
再次把公式修改,去掉了首行的单元格公式,还是没有结果
DelFor("C表","记录", "<>" ,"") And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",2)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",3)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",4)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",5)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",6)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",7)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",8)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",9)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",10)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",11)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",12)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",13)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",14)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",15)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",16)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",17)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",18)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",19)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",20)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",21)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",22)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",25)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",26)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",27)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",28)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",29)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",30)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",31)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",32)) And AddRow("C表","x_ID,记录",[x_ID],FindText("B表","记录","x_ID", "=" ,"",33)) And DelReptRows("C表","记录") And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",2)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",3)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",4)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",5)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",6)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",7)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",8)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",9)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",10)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",11)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",12)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",13)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",14)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",15)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",16)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",17)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",18)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",19)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",20)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",21)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",22)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",23)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",24)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",25)) And DelFor("C表","记录", "=" ,FindText("A表","记录","x_ID", "<>" ,"",26)) And RecalcRow("C表",1,1,1)
|