PC Review


Reply
Thread Tools Rate Thread

RE: Select data from table NOT IN another table

 
 
Beetle
Guest
Posts: n/a
 
      9th Jul 2009

SELECT [SomeField] FROM Table1
WHERE Table1.[SomeField]
NOT IN (SELECT [SomeField] FROM Table2)

--
_________

Sean Bailey


"gmazza via AccessMonster.com" wrote:

> Hey there,
> How can I make a query to Select data from one table that doesn't exist in
> another table.
> For example, I have 2 tables.
> Table 1 - Trademark
> Data: 1 2 3
>
> Table 2 - Competitor
> Data 1 2
>
> So on my Competitor form, I have a combo box and I want to only see the
> values from Trademark that aren't already in Competitor. I want my query to
> return 3.
>
> Obviously there is more going on, just wanted to give a quick rendition of
> what I need, hope it makes sense.
> Thanks!
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...oding/200907/1
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Select data from table NOT IN another table KARL DEWEY Microsoft Access Form Coding 2 22nd Jul 2009 02:19 AM
Search one table to copy and paste select data to another table Sarah Microsoft Access VBA Modules 1 12th Dec 2008 07:42 PM
display data from another table to another table =?Utf-8?B?TWFyaw==?= Microsoft Access 2 31st Dec 2005 04:36 PM
Select ... from ((Select ...)(Select...)) =?Utf-8?B?Sm9obg==?= Microsoft Access Queries 1 13th Jul 2005 12:05 AM
How to select some not all column from a table then apend to another table? Min Microsoft Access 2 6th Oct 2004 10:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 PM.