I have a series of questions, each with 8 possible "yes/no" choices. The answers are not mutually exclusive (ie, one can select none, 1, 2,... all 8 of the responses). To save space, I have encoded each question's answer as an integer from 0-255, based upon the "on/off" state of each of the 8 bits for the question. I am building an SQL statement which will retrieve records in which a specified bit is matched, however the bitwise comparison is not working properly within Access SQL. This syntax seems like it should work, but does not:
SELECT vol_last, vol_first FROM tblVol WHERE vol_act = True AND ((vol_qB And 15) = 15)
Are bitwise logical comparisons supported in SQL? Or it is time to implement another approach, such as retrieving an initial recordset, and travelling through it making the comparison in code?
Thanks for thoughts!!
SELECT vol_last, vol_first FROM tblVol WHERE vol_act = True AND ((vol_qB And 15) = 15)
Are bitwise logical comparisons supported in SQL? Or it is time to implement another approach, such as retrieving an initial recordset, and travelling through it making the comparison in code?
Thanks for thoughts!!