Solved

List From Two Tables

Posted on 2007-12-02
5
171 Views
Last Modified: 2010-03-20
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
Comment
Question by:cursive34
  • 3
  • 2
5 Comments
 
LVL 75
ID: 20391834
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
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 20391842
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
 
LVL 2

Author Comment

by:cursive34
ID: 20391886
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
 
LVL 2

Author Comment

by:cursive34
ID: 20391895
I got it set straight i forgot to add the group header thanks so much
0
 
LVL 75
ID: 20391900
You are most welcome.  

mx
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now