开发者

vba: evaluating whether sql statement is true or false

how do i evaluate in VBA access whether the following statement is true:

([Panels] like '*IT_AMPH,*' or [Panels] like '*AMPH_SN,*' or [Panels] like '*AMPH_S,*') and
([Panels] like '*IT_BARB,*' or [Panels] like '*BARB_SN,*' or [Panels] like '*BARB_S,*')

this is going to be running in Report_Load and i need to know whether the statement returns true or开发者_如何学编程 false


See whether the IIf() function works here.

IIf("your long statement", 1, 0)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜