Solved

Can I say use NOT IN operator on a query?

Posted on 2006-06-20
3
336 Views
Last Modified: 2008-02-01
I have one query that does some logic to get a result that has a list of registrations numbers

in another query, i want to do some logic and part of that is.

and RegNo NOT IN (firstQry.RegNo)

Is this possible?  when I try to setup up the queries in Access, it asks me to enter the value for firstQry.RegNo, so I'm either doing something wrong or it is not possible to do this way.
0
Comment
Question by:jjacksn
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 300 total points
ID: 16944659
Hi jjacksn,
 and RegNo NOT IN (Select Regno from firstqry)


Pete
0
 
LVL 7

Assisted Solution

by:wesbird
wesbird earned 200 total points
ID: 16944660
after the IN it needs to be a complete select query

e.g.
NOT IN (SELECT RegNo FROM .... WHERE .... )
0
 
LVL 5

Author Comment

by:jjacksn
ID: 16945023
ah, thanks!
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question