开发者

vba: evaluating whether sql statement is true or false

开发者 https://www.devze.com 2023-01-05 20:52 出处:网络
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

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

精彩评论

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