B
Bart Steur
Hello,
I want to use a bitwise OR comparison in a MSAccess Query.
I've tried the following:
SELECT * FROM MyTable WHERE MyValue OR 2 <> MyValue.
The comparison returns always TRUE. Because the part 'MyValue OR 2' always
returns TRUE (-1). Then comparison TRUE <> MyValue is always TRUE also
(unless MyValue = -1 which is the numeric value of TRUE).
I expect one of the following:
1 OR 2 = 3 >>> False
2 OR 2 = 2 >>> True
3 OR 2 = 3 >>> True
4 OR 2 = 6 >>> False
5 OR 2 = 7 >>> False
6 OR 2 = 6 >>> True
Ect. Etc.
Please help.
Thanks,
Bart
I want to use a bitwise OR comparison in a MSAccess Query.
I've tried the following:
SELECT * FROM MyTable WHERE MyValue OR 2 <> MyValue.
The comparison returns always TRUE. Because the part 'MyValue OR 2' always
returns TRUE (-1). Then comparison TRUE <> MyValue is always TRUE also
(unless MyValue = -1 which is the numeric value of TRUE).
I expect one of the following:
1 OR 2 = 3 >>> False
2 OR 2 = 2 >>> True
3 OR 2 = 3 >>> True
4 OR 2 = 6 >>> False
5 OR 2 = 7 >>> False
6 OR 2 = 6 >>> True
Ect. Etc.
Please help.
Thanks,
Bart