C
Cliff
I have a query that is working fine with an SQL back end
but is not working with an ACCESS back end. The query
takes a db field and "AND"s a value with it. It returns
the value if there is a bit wise match of the value
contained in the db field.
For Example if the db value is 19 and the value being
anded is 16 the operation should return 16. With an SQL
back end all workd fine. But with an ACCESS backend if
get -1 in all cases except when the anding value is 0.
The sql version is as follows
SELECT ([tableitems].[Accesscodes] & 16) AS access FROM
[switchboard items] WHERE (((([tableitems].[Accesscodes] &
16))>0));
If I run this against an ACCESS back end the returned
value is [accesscodes] with 16 appended to the value 3116
for example. If I change the '&' to an AND I get -1 for
all rows as long as value is not 0.
Any help out there?
but is not working with an ACCESS back end. The query
takes a db field and "AND"s a value with it. It returns
the value if there is a bit wise match of the value
contained in the db field.
For Example if the db value is 19 and the value being
anded is 16 the operation should return 16. With an SQL
back end all workd fine. But with an ACCESS backend if
get -1 in all cases except when the anding value is 0.
The sql version is as follows
SELECT ([tableitems].[Accesscodes] & 16) AS access FROM
[switchboard items] WHERE (((([tableitems].[Accesscodes] &
16))>0));
If I run this against an ACCESS back end the returned
value is [accesscodes] with 16 appended to the value 3116
for example. If I change the '&' to an AND I get -1 for
all rows as long as value is not 0.
Any help out there?