Hi All,
Thanks for your thinking. I prefer not to include Access code (it is a .net web app). I now have a flex way to do it, as follows:
WHERE (((Fix(([Caps]-(Fix([Caps]/B))*B)/A)=1)))
A is the num value of the bit i look for
and B is the num value of the next bit
No, does not work with me (Access 2003). Zero records returning. It looks like Access evaluates 'Caps' as a boolean and also 4 (although all are Numbers).
Hi,
I use in an SQL table an Integer column called 'Caps' to store capabilities. Each bit of the integer represent a capability. Now I need to select in an SQL statement only those rows that have a specific capability. And i cant find how to do this! Someone knows?
Assume
-row 1 of the...
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.