填报校验写公式:
if(G2="0",sql("数据链接名","select count(1) from 表名1 where 客户代码='"+B2+"' ",1,1)>0&&sql("数据链接名","select count(1) from 表名2 where 产品代码='"+C2+"'",1,1)>0,if(G2="1",sql("数据链接名","select count(1) from 表名 where 客户代码='"+B2+"'",1,1)>0,true),true)
此公式考验你的sql函数的应用。