G
Guest
When I use AND or Xor on a numeric field in an Access Query, it appears not
to do the bitwise compare, but rather takes 0 as False and anything else as
True and does a general And operation. For example, on the Query grid:
Expr1: (CInt(1) And CInt(2)) always returns -1: as in True And True, whereas
in VBA x = 1 And 2 will return 0 to x. x = 3 And 2 will return 2. It's as if
it's doing a CBool on each side of the And before doing the And operation.
Any ideas how to get it to do a binary bitwise compare?
to do the bitwise compare, but rather takes 0 as False and anything else as
True and does a general And operation. For example, on the Query grid:
Expr1: (CInt(1) And CInt(2)) always returns -1: as in True And True, whereas
in VBA x = 1 And 2 will return 0 to x. x = 3 And 2 will return 2. It's as if
it's doing a CBool on each side of the And before doing the And operation.
Any ideas how to get it to do a binary bitwise compare?