L
Lou da Silva
I'm not quite sure how to categorize this problem, but I've run into a
peculiar problem retrieving data from an access table [Using Access 2003,
Windows XP Professional, Jet 4.0.8618.0].
I have a table with a "key" column. Each record's "key" field contains 8
characters. As an example some of the keys look like this:
KQRSLN/?
KQWRMNNA
K-QWSLNW
KR/N/WXA
KQWWWWAC
MNWZSDRF
K-QSMTHN
KQRSLTNE
When I run the following select query:
"select key from mytable where key >= 'KQ??????' and key <= 'KQZZZZZZ';"
The results I get are
KQRSLTNE
K-QSMTHN
KQWRMNNA
K-QSMTHN
KQWWWWAC
What I don't understand is why the keys with the dashes [-] in the second
position are being returned by this query. I don't get this behaviour in
a SQL server database, but unfortunately I'm stuck using Access for this
project.
Has anyone encountered this before - and solved it?
peculiar problem retrieving data from an access table [Using Access 2003,
Windows XP Professional, Jet 4.0.8618.0].
I have a table with a "key" column. Each record's "key" field contains 8
characters. As an example some of the keys look like this:
KQRSLN/?
KQWRMNNA
K-QWSLNW
KR/N/WXA
KQWWWWAC
MNWZSDRF
K-QSMTHN
KQRSLTNE
When I run the following select query:
"select key from mytable where key >= 'KQ??????' and key <= 'KQZZZZZZ';"
The results I get are
KQRSLTNE
K-QSMTHN
KQWRMNNA
K-QSMTHN
KQWWWWAC
What I don't understand is why the keys with the dashes [-] in the second
position are being returned by this query. I don't get this behaviour in
a SQL server database, but unfortunately I'm stuck using Access for this
project.
Has anyone encountered this before - and solved it?