Find value not available in Other Table - MS Access

MUKESHY12390

Well-known Member
Joined
Sep 18, 2012
Messages
901
Office Version
  1. 2013
  2. 2011
  3. 2010
  4. 2007
Platform
  1. Windows
Hi All,

I'm trying to build query to get record which are not available in other table. I know the query it works every other database but not in which I'm using.

PHP:
SELECT ID from A
Where ID NOT In(Select ID from B)

Is there something to do with the value like any special character in field.

And by using Do loop I can get record but the situation doesn't demand for loop.I need build query only.

Any help would be appreciate.

Thanks,
Mukesh Y
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Your query looks OK - are the ID fields the same data type?

An alternative approach which I prefer is using an outer join:

Code:
SELECT A.ID
FROM A LEFT JOIN B ON A.ID = B.ID
WHERE B.ID Is Null
 
Upvote 0
thanks a lot.. I will try btw I got the solution.

there was one null field in record which I Update first as "NoComment" then proceed. Everything back to business.

but it seems by using your query i don't have to update stuff.
 
Upvote 0

Forum statistics

Threads
1,221,692
Messages
6,161,351
Members
451,697
Latest member
pedroDH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top