Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

List From Two Tables

I have two tables, a Manager table and a Employee table and I want to make a report that will List each managers name and underneath that list every employee related to this manager.
0
cursive34
Asked:
cursive34
  • 3
  • 2
1 Solution
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
Create a Select query joining the MgrID in the Manager table to the MgrID in the Employee table and make this the recordsource for the report.

Then in the report, Group by Manager and list each employee name.

mx
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
Your SQL for the query should look something like this:

SELECT tblMgr.MgrName, tblEmp.EmpName
FROM tblMgr INNER JOIN tblEmp ON tblMgr.MgrID = tblEmp.MgrID;

mx
0
 
cursive34Author Commented:
I have the report set up in the Grouping/Sorting as this:

tblMgf.MgfName in the Field and Sort Ascending.

and i have the tblMgr.MgrName and tblEmp.EmpName as fields on the report. it will list everything in order but keep repeating the mgrname
0
 
cursive34Author Commented:
I got it set straight i forgot to add the group header thanks so much
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
You are most welcome.  

mx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now