new to access compare table v table

andrew29

Board Regular
Joined
Jun 1, 2003
Messages
75
Hi,

I have 2 tables.

T1. One existing in a database with a whole lot of data items such as name, date of birth, city, address etc (100000 records).

T2. The other I have impoted and has name and date of birth. (200 records).

What I want to do is see if the records in T2 exist in T1. I'd like to do them all at once so I dont have to specify each name and date of birth 200 times. Records need to match on name and date of birth, to ensure an accurate match.

any help is appreciated.

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
The easiest way: Use the Find Unmatched Records Query Wizard. If this doesn't work then
Another way: Write a query which selects all of the fields from T2 and add a new field which concatenates name and DOB in T2 as:
Code:
[Name] & [DOB]
Wite a query which will do the same thing for your large table. Now, through this combination of fields, you will have a new field which will uniquely identify each record. Outer join your small table's query to your large table's query and in the criteria of your large table's concatenated field, write
Code:
is null
This will then give you a result set of every Name/DOB combination from Table 2 that does not exist in Table 1.
 
Upvote 0

Forum statistics

Threads
1,221,532
Messages
6,160,381
Members
451,643
Latest member
nachohoyu

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