WHERE (((数据浏览.数据) Like IIf(IsNull([forms]![数据浏览]![查找]),"*","*" & [forms]![数据浏览]![查找] & "*")))
变成在VBA中的QSL语言?主要是中间的括号不知怎样处理?[em06][em06][em06] 作者: 情比金坚 时间: 2006-8-9 11:45
If IsNull(Text5) Then
wherestr = " WHERE pname like '*'"
Else
wherestr = " where pname like '*' & '" & Text5 & "' & '*'"
End If
mysql = "SELECT * FROM tab_pinfo " & wherestr