Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Parent and Children in Report Upload Images   Link   Email  
Alexander Louis      
15 days ago
I have a single table of companies and their CEOs. Some companies are 'parent' companies of other subsidiary companies in the table.

I'd like to create a report that lists parent companies in alphabetical order, with subsidiary companies grouped beneath their respective parent and also in alphabetical order. See example below (note some CEOs are CEOs of more than one Company).

Any advice on how to build the query and report to get this output? I've been banging my head against the wall for a while on this.

Parent A        CEO A
Parent B        CEO B
Subsidiary 1  CEO 1
Subsidiary 2  CEO 2
Parent C       CEO B
Kevin Robertson             
15 days ago
Alexander Louis OP      
15 days ago
Thank you. I understand Grouping. I'm having difficulty because this is a self-referencing table. The table is of 'Companies', including all parents and subsidiaries. There is a 'Parent Company' field which is null for parent companies, but has a value if the company is a subsidiary. The value is the ID of the other company in the table which is that subsidiary's parent.

How do I list the Companies with a null value in 'Parent' alphabetically, and then group the Companies with a value in 'Parent' with the companies that correspond to that value? Thanks in advance!
Kevin Yip       
15 days ago
If you have a "self-referencing" table, you can use it twice in the same query, and link them together as if they were two tables.  In the query designer, drag the table in once.  Then drag the same table in again.  The second copy will have "_1" added to the name.  Then join the two tables as if one were the parent table and the other the child.
John Davy           
15 days ago
Hi Alexander
Kevin is exactly correct. In Richard's video Access Relationship Lesson 10 will show you exactly what you are looking for.

John
Add a Reply Upload an Image

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/9/2024 4:48:18 AM. PLT: 1s