我不是说了吗? 如果需要like 就 like 'X' & '%' 如果没有条件 就不要like了 在执行sql语句之前加一个判断!ok!
上次你那个程序我改完发给你,你收到了吗? 这次的: dim str1 as string if text1.text<>"" then str1=text1.text else str1="%" endif strsql="select * from tongdata where name like '" & str1 & "'"
收到了,,谢谢 to superjs(真剑神) 那样太麻烦了,我有20多个, 难道要一个一个来? 而且一个一个来也不可能啊
如果需要like 就 like 'X' & '%'
如果没有条件 就不要like了
在执行sql语句之前加一个判断!ok!
这次的:
dim str1 as string
if text1.text<>"" then
str1=text1.text
else
str1="%"
endif
strsql="select * from tongdata where name like '" & str1 & "'"
to superjs(真剑神)
那样太麻烦了,我有20多个, 难道要一个一个来?
而且一个一个来也不可能啊