setfilter的简单问题 达人帮解决下 谢谢了
if cbx_4.checked = true then if trim(s)<>"" then
s = s+" OR book_info_Keyword like"+"'%"+sle_6.text+"%'"
else
s = "book_info_Keyword like"+"'%"+sle_6.text+"%'"
end if
end if
if cbx_1.checked = true then
if trim(s)<>"" then
s= s+" OR book_name like"+"'%"+sle_3.text+"%'"
else
s= "book_name like"+"'%"+sle_3.text+"%'"
end if
end if
if cbx_2.checked = true then
if trim(s)<>"" then
s= s+" OR book_info_author like"+"'%"+sle_5.text+"%'"
else
s= "book_info_author like"+"'%"+sle_5.text+"%'"
end if
end if
if cbx_3.checked = true then
if trim(s)<>"" then
s = s+" OR book_info_publisher like"+"'%"+sle_4.text+"%'"
else
s = "book_info_publisher like"+"'%"+sle_4.text+"%'"
end if
end if
dw_1.setfilter(s)
dw_1.filter()
运行时会提示 excepting true/false expression
怎么解决啊
谢谢了
多条件的不怎么会用