为什么在执行 &sele1时出错呢?
我做了个统计人数的表单用到 luru\jp\hz\zj 四个表,如下代码,在 &sele1时出错?
sele1=IIF(thisform.check1.Value=1 ," select COUNT(sfzh) as 66 from luru " , "" )
sele1=IIF(thisform.check2.Value=1 ,IIF(!EMPTY(sele1),sele1+" union select COUNT(sfzh) as 66 from jp "," select COUNT(sfzh) as 66 from jp ") , sele1 )
sele1=IIF(thisform.check3.Value=1 ,IIF(!EMPTY(sele1),sele1+" union select COUNT(sfzh) as 66 from zj "," select COUNT(sfzh) as 66 from zj ") , sele1)
sele1=IIF(thisform.check4.Value=1 ,IIF(!EMPTY(sele1),sele1+" union select COUNT(sfzh) as 66 from hz "," select COUNT(sfzh) as 66 from hz ") , sele1)
sele1=IIF(!EMPTY(sele1),sele1+" into curso dfd","")
&sele1×××××××××××这句出错