That was it. Thanks very much - you saved me from pulling out what little hair I have left. Now to see if I can use the bitand function from VB with an odbc data source.
mike
Thanks for the reply, but I want to do a boolean (bitwise) "AND" between the "RIGHTS" field and the number 4.
For example, in boolean logic:
4 AND 1 = false
4 AND 2 = false
4 AND 4 = true
4 AND 5 = true
4 and 6 = true
etc
or looking at it in binary:
0100 (4)
AND 0001 (1)
------------...
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...
I have a pix525/unrestricted with 3 interfaces - inside, outside, dmz. On the dmz interface I have a router, behind which is a server with ip address 172.x.x.x. On the inside interface, client computers connect to the server at 172.x.x.x, so I set up a static route for the server's ip address...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.