Queries Criteria-Not Like

  • Thread starter Steven P via AccessMonster.com
  • Start date
S

Steven P via AccessMonster.com

Hi,
I'm having trouble with Not-Like. The "types" of machines I wish to exclude
are still showing- eg. hone, 07 K-Land, 08 K-Land, 09 K-Land, 63 T/B etc. The
Periphery Exception is working correctly. I've posted the SQL.
Thanks
SELECT [Inputs Table (MAIN)].DATE, [Inputs Table (MAIN)].[Good Pieces],
[Inputs Table (MAIN)].[103 Machine]
FROM [Inputs Table (MAIN)]
WHERE ((([Inputs Table (MAIN)].[103 Machine]) Not Like "Hone,63 T/B,67 T/B,71
Microflat,07 K-Land,08 K-Land,09 K-Land") AND (([Inputs Table (MAIN)].
[Periphery Exception]) Not Like ("*")));
 
D

Duane Hookom

You would need to use something like:
Not in ("Hone","63 T/B","67 T/B","71 Microflat","07 K-Land","08 K-Land","09
K-Land")

You generally us "Like" with wild cards like
Like "ABC*"
If you don't use * or some other wild card, you might as well use =.
 
S

Steven P via AccessMonster.com

Hi,
Still seeking help with this one.
Thanks

Steven said:
Hi,
I'm having trouble with Not-Like. The "types" of machines I wish to exclude
are still showing- eg. hone, 07 K-Land, 08 K-Land, 09 K-Land, 63 T/B etc. The
Periphery Exception is working correctly. I've posted the SQL.
Thanks
SELECT [Inputs Table (MAIN)].DATE, [Inputs Table (MAIN)].[Good Pieces],
[Inputs Table (MAIN)].[103 Machine]
FROM [Inputs Table (MAIN)]
WHERE ((([Inputs Table (MAIN)].[103 Machine]) Not Like "Hone,63 T/B,67 T/B,71
Microflat,07 K-Land,08 K-Land,09 K-Land") AND (([Inputs Table (MAIN)].
[Periphery Exception]) Not Like ("*")));
 
D

Duane Hookom

Did you see my reply? If it didn't work, please reply with your results.

--
Duane Hookom
MS Access MVP
--

Steven P via AccessMonster.com said:
Hi,
Still seeking help with this one.
Thanks

Steven said:
Hi,
I'm having trouble with Not-Like. The "types" of machines I wish to
exclude
are still showing- eg. hone, 07 K-Land, 08 K-Land, 09 K-Land, 63 T/B etc.
The
Periphery Exception is working correctly. I've posted the SQL.
Thanks
SELECT [Inputs Table (MAIN)].DATE, [Inputs Table (MAIN)].[Good Pieces],
[Inputs Table (MAIN)].[103 Machine]
FROM [Inputs Table (MAIN)]
WHERE ((([Inputs Table (MAIN)].[103 Machine]) Not Like "Hone,63 T/B,67
T/B,71
Microflat,07 K-Land,08 K-Land,09 K-Land") AND (([Inputs Table (MAIN)].
[Periphery Exception]) Not Like ("*")));
 
S

Steven P via AccessMonster.com

Duane,
Yes it did work. I did not see your answer until I had re-sent the posting.
Thanks!!


Duane said:
Did you see my reply? If it didn't work, please reply with your results.
Hi,
Still seeking help with this one.
[quoted text clipped - 14 lines]
Microflat,07 K-Land,08 K-Land,09 K-Land") AND (([Inputs Table (MAIN)].
[Periphery Exception]) Not Like ("*")));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top