Create Query Linking Two Tables Together

Sypher7

New Member
Joined
Oct 30, 2013
Messages
18
Hello,

I have two tables. One labelled "Records" and one labelled "Comments".

I both tables I have an "Account Number"

However in the records table, there will only ever be one record for each account. In the comments table there can be any number of records for that account.

The idea behind this is that everytime a new action is taken on an account a new comment is logged, using a continuous subform i have it showing a comment history.

I need to create query which brings back certain fields from the records table but also the comment from the comments table.

So far I have got it to work with the exception that each comment shows as a new record in my finished report.

I am after a way of combining all of the comments into one field and then pulling it through so that each account will only show up one in my finished report.

Can anyone suggest a way of doing it please as I am a bit stumped.

Thanks
 
I see. I think I also see that post #8 contains the answer (grouping) although the result would only be very close to what you've posted that you want.
Account NumberAccount NameIn QueryComment
AC001Account 1Yes
Received-Documents
Documents-Incorrect
Account-Placed-in-Query
AC003Account 3Yes
Received-Documents
Documents-Incorrect
New-Documents-Still-Incorrect
Account-Placed-in-Query

<tbody>
</tbody>
 
Last edited:
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,216,581
Messages
6,131,546
Members
449,654
Latest member
andz

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