Is there a way to keep all records from one table in Access Query?

Maggie Barr

Board Regular
Joined
Jan 28, 2014
Messages
188
Hello, and thank you for helping if you can.
I am new to Access, and I am trying to use it to do some data handling before I bring it into Power Query and Power Pivot. I am running a query to merge data from some tables (like a VLOOKUP), and it is reducing the number of records because one table does not always have a match to one of the lookup tables. Is there a way to set criteria so all the records in one table are kept and then show blanks or N/A for no match to the lookup table columns being brought over. I need the full data set.
Thank you for your time,
Maggie Barr
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
you want an OUTER join query.
in the query, join the 2 tables,
bring down the same field from both tables, (that you joined)
dbl-click the join line,
set to ALL records from one table, Some records from the other
Ok
run the query, you will see all records in the 1 table and nulls where the data is missing in the other.

If you want to see ONLY the missing records, under the criteria put NULL and you will get only the missing recs.
 
Last edited:
Upvote 0
Hi,

in the query you need to doppel click on the join and than change it to one of those options then you get all data even there are no data in the look up table.


HTH
 
Upvote 0
ranman256,
Thank you for this. Yes that worked. I had actually read something about that, and I went in and set it for that in the main relationships tables, but it hadn't updated to the relationships within the query. Doing it in the query design view worked.
Thank you so much, and have a great day!
Maggie
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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