spookycave
Technical User
I have a numeric (long int) field called RIGHTS in a table called ACL, and I'm running this query on it:
SELECT ACL.* FROM ACL WHERE CBool(RIGHTS And 4)=True;
I just want to select all values that are true, when logically "and'ed" together with the number 4. So I'd want to select values 4, 5, 6, 7, 12, etc. Basically i want a binary "and" operator, but ms access doesn't seem to support it. If I show the value for CBool(RIGHTS And 4), all fields come back as being -1, even when the field value is a 1 or a 2.
I'm running MS Access 2002 sp3. Any help would be much appreciated.
Thanks in advance,
mike
SELECT ACL.* FROM ACL WHERE CBool(RIGHTS And 4)=True;
I just want to select all values that are true, when logically "and'ed" together with the number 4. So I'd want to select values 4, 5, 6, 7, 12, etc. Basically i want a binary "and" operator, but ms access doesn't seem to support it. If I show the value for CBool(RIGHTS And 4), all fields come back as being -1, even when the field value is a 1 or a 2.
I'm running MS Access 2002 sp3. Any help would be much appreciated.
Thanks in advance,
mike