Solved

Can I say use NOT IN operator on a query?

Posted on 2006-06-20
3
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 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