Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can I say use NOT IN operator on a query?

Posted on 2006-06-20
3
Medium Priority
?
344 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 1200 total points
ID: 16944659
Hi jjacksn,
 and RegNo NOT IN (Select Regno from firstqry)


Pete
0
 
LVL 7

Assisted Solution

by:wesbird
wesbird earned 800 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

916 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