#2
csyx2024-05-31 16:10
|
只有本站会员才能查看附件,请 登录
图片看不到的话,其实就是数据表里有几十种资产名称,用户就通过LIST选择需要筛选的资产名称,获得所需要的数据表
筛选命令框代码:
PUBLIC cwh
thisform.grid1.RecordSource=""
LOCAL cmb(999)
cwh=" "
tjshu=thisform.list6.ListCount
cwh ="zcname like('%'+ALLTRIM(thisform.list6.list(1))+'%')"
IF tjshu >1
FOR i= 2 TO tjshu
cmb(i)=ALLTRIM(thisform.list6.list(i))
cwh=" "+cwh+" "+" or "+" zcname like('%'+ cmb(i)+'%')"
next
ELSE
endif
SELECT * FROM ch WHERE cwh into dbf temptemp &&&&&执行到这行报错,---"SQL:WHERE字句无效"
请问哪里有问题呢?