if(len(${企业名称}) == 0,and a.PARTNER_ID in (${=value("企业",1)}),and a.PARTNER_ID = ${企业名称})
参数:企业名称 代表下拉框控件值预览sql时报错,这个if公式要怎么修改呢?
if(len(企业名称) == 0,"and a.PARTNER_ID in (${=value("企业",1)}),"and a.PARTNER_ID =" '"+企业名称+"'})
不对,里面不能用value吧
将value("企业",1) 放在B1单元格不扩展
${if(len(企业名称)=0," and a.PARTNER_ID in('"+REPLACE(B1,",","','")+"')","and a.PARTNER_ID ='"+企业名称)+"'")}
${=if(len($企业名称) == 0,"and a.PARTNER_ID in ("+VALUE("企业",1)+")","and a.PARTNER_ID ="+$企业名称)}