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.
LVL 2
cursive34Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Connect With a Mentor 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
 
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
 
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
All Courses

From novice to tech pro — start learning today.