Ordered report (1 Viewer)

SeeAll

New member
Local time
Today, 10:54
Joined
Sep 18, 2021
Messages
2
Hi,
I wish to combine data from two tables into a report.

Table 1
Name Year
Abbott 1653
Andrews 1653

Table 2
Name Year
Abbott 1700
Andrews 1700

Report
Name Year
Abbott 1653; 1700
Andrews 1653; 1700

I hope the above makes sense? Using MS Access 2007.

Help! I'm sure there's a simple solution.
 
Last edited:

theDBguy

I’m here to help
Staff member
Local time
Today, 02:54
Joined
Oct 29, 2018
Messages
21,467
Have you tried creating a query for your report? For example, create something like:

SQL:
SELECT Table1.[Name], Table1.[Year], Table2.[Year]
FROM Table1 INNER JOIN Table2
ON Table1.[Name]=Table2.[Name]

If you really want to combine all the years in a single column, you can take a look at this simple function.
http://www.accessmvp.com/thedbguy/codes.php?title=simplecsv
Hope that helps...
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 05:54
Joined
Feb 19, 2002
Messages
43,257
You may want a union query. It is not clear if you want a list that includes items from all there tables or if you want to join the tables and display records that match.
 

Users who are viewing this thread

Top Bottom