F
FA
Hello,
I have the following SQL:
SELECT ETS.*
FROM ETS
WHERE (((Left([COMM CODE],8)) Not In (73121010)) AND ((Left([COMM CODE],6))
In (732620))) OR (((Left([COMM CODE],4)) In
(7213,7217,7221,7223,7227,7229,7312,7313,7314,7317,8311)));
COMM CODE has 10 digits but my criteria needs to be less digits because they
refer to different groups.
I can't make the "NOT IN" to work. I also tried OR between that criteria
and the next, also <> instead of not in. Every time I go to datasheet and I
still find the 73121010 code!
What is that I 'm doing wrong.
Maybe I could have use COMM CODE without the left formula and use *?
Please help!
I have the following SQL:
SELECT ETS.*
FROM ETS
WHERE (((Left([COMM CODE],8)) Not In (73121010)) AND ((Left([COMM CODE],6))
In (732620))) OR (((Left([COMM CODE],4)) In
(7213,7217,7221,7223,7227,7229,7312,7313,7314,7317,8311)));
COMM CODE has 10 digits but my criteria needs to be less digits because they
refer to different groups.
I can't make the "NOT IN" to work. I also tried OR between that criteria
and the next, also <> instead of not in. Every time I go to datasheet and I
still find the 73121010 code!
What is that I 'm doing wrong.
Maybe I could have use COMM CODE without the left formula and use *?
Please help!