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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,203,379
Messages
6,055,096
Members
444,761
Latest member
lneuberger

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