Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Ancestry Chart
Richard Cruthirds 
    
5 years ago
I need to print an Ancestry Chart showing the Person PLUS 5 levels of Ancestry (great-great-great-grandparents)
My Person table has a Paternal ID (PID), and a Maternal ID (MID) that relates back to itself . . .all Persons are in this table . . .when I try a self join, it requires so many connections, I get an error "cannot open any more databases" when I add the 5th great-great grandparent join. I've attached my query that works up until that error. . .can anybody think of a way to get a query developed without this limitation? Thanks
Richard Cruthirds OP  @Reply  
    
5 years ago
I realize you have a genealogy demo, but I've already developed a simple database with a single Person table where each PersonID record has a field with PaternalID and MaternalID.  When I try to build a self join query, it works fine until I add the 7th person to the great great grandparent level, I get the error "cannot open any more databases", which I assume means I've got too many connections open? ? ? I need a chart that goes great-great-great grandparent (person + 5 levels) Any help would be appreciated. . .this is my first post, so I don't see where to add a screenshot of my query that works up to a point. . .
Adam Schwanz  @Reply  
           
5 years ago
See THIS, same problem.
Richard Cruthirds OP  @Reply  
    
5 years ago

Adam Schwanz  @Reply  
           
5 years ago
This is turning into postception...
Richard Rost  @Reply  
          
5 years ago
That's an interesting conundrum. I've never run into that myself. My genealogy database only shows 4 levels of the family at any given time. You, your parents, your grandparents, and your children in a list box. You're definitely running into an issue with too many joins in one table. Plus the total SQL statement behind that graphical editor also has a limit too. It's pretty long (64k, I think) but you might be running into it. There may be a better way to design that, however. What's the OUTCOME that you're looking for? What are you doing with that monster query?
Richard Cruthirds OP  @Reply  
    
5 years ago
This is a registry for Exotic Wildlife Species . . . I need to produce a Registry Certificate showing parentage that many levels deep. . .my report that shows 3 levels works fine, but when I try to increase the levels to 5, I exceed the thresholds . . .attached is a sample, but the data is bogus and duplicates, not valid levels of ancestry . . .
Richard Cruthirds OP  @Reply  
    
5 years ago

Richard Cruthirds OP  @Reply  
    
5 years ago

Richard Cruthirds OP  @Reply  
    
5 years ago

Richard Rost  @Reply  
          
5 years ago
OK. I see. Instead of making a giant query with a ton of joins, use a report with DLookup statements in it. That might work better. That's pretty much how I show how to do it in the Genealogy Seminar, but I don't go into as much detail as you do. So yes, I'd say that if you used my technique, you wouldn't have any problem going 5 levels deep.
Richard Cruthirds OP  @Reply  
    
5 years ago
OK  . . . Thanks

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
 
What's This?

 

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 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 9/3/2026 11:26:31 AM. PLT: 1s