473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

BXOR

Is BXOR a JET 4.0 SQL operator?

How can I get DAO to use BXOR in a query,
eg SELECT ID, (ID BXOR 2) as IDBXORedWith2 from Table1
?

(Access 2003)

--
Lyle Fairfield
Nov 13 '05 #1
2 2191
Br
Lyle Fairfield wrote:
Is BXOR a JET 4.0 SQL operator?

How can I get DAO to use BXOR in a query,
eg SELECT ID, (ID BXOR 2) as IDBXORedWith2 from Table1
?

(Access 2003)


Not in Jet4. You'd have to build you're own function to do it.

But I believe BAND is available if you use ADO.

eg.
Dim rs As New ADODB.Recordset
Dim strSql As String
strSql = "SELECT myField, (myField BAND 8) <> 0 FROM myTable;"
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #2
Br@dley wrote:
Lyle Fairfield wrote:
Is BXOR a JET 4.0 SQL operator?

How can I get DAO to use BXOR in a query,
eg SELECT ID, (ID BXOR 2) as IDBXORedWith2 from Table1
Not in Jet4. You'd have to build you're own function to do it. No; I've done a bit more reading since my original post. It's a
reserved word in JET 4.0 SQL and works just a BAND does..
But I believe BAND is available if you use ADO.

Yes. But my question is, (one more time):

BXOR is a reserved word in JET 4.0. It's a bitwise operator, evaluating
to the equivalent, (TTBOMK) as VBA's XOR ie [bits]: (0,0) => 0,
(1,1)=>0, (0,1)=>1, (1,0)=>1. Very very simple encryption schemes (eg
Yahoo Messenger XORs mesage strings with the user's log name
repetitively for its log files) use XOR, so it's quite a handy
operator. I use XORs as false trails when I want to be REALLY obtuse
(when actually I am using the Crypt API).

DAO is the "natural" technology of JET 4.0.
So how can we use BAND (or BXOR or BNOT etc) in DAO?

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bill | last post by:
All, I have not visited Access for a while, and I am drawing a blank on how to search/sort a column of data (integer) for/on a particular bit pattern. Actually, a SQL example would be great. ...
11
by: Paul H | last post by:
Suppose I have a table called tblPeople and I want a field to illustrate whether each person prefers cats or dogs. I could do it one of three ways. 1. A plain text field Create a text field in...
4
by: thomas | last post by:
I have a list of strings composed of only 0 and 1, like 0000100001 1000010000, .... They all have the same length. Now they are stored in a vector of strings. I want to calculate count(string1...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.