Access Query duplicate records

Riaang

Board Regular
Joined
Aug 29, 2002
Messages
146
Hi there,

I have 2 tables that I need to link with one another by means of payroll number. The first table consist of only the main members detail. On the second table it has the main member and directly underneath with the same payroll number the detail of his family.

In my query I need to get all the detail from Table one and then only the main members ID number from table 2. In my result I get more than one record per member because it depends on the amount of family members he has in the second table.

How can I ensure that I only get one record per member in my result.

Please assist.
Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
try doing a calculated query for table 2 and "group by" the member info. Then in another query, connect table 1 to your calculated query.

hope that helps..
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,872
Members
451,674
Latest member
TJPsmt

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