I have a table of people, Primary key PersonID. This contains family members Father, Mother, Grandfathers, Grandmothers etc.
Clearly my father’s father is my grandfather.
Assuming I provide my father (& Mother’s) ID’s manually, how can I get Access to copy my father’s father ID into my grandfather field automatically and so on back for several generations.
Clearly there is a fixed relationship so it must be programmable but I can’t get my head round it.
Thanks in anticipation.
Mike
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Table Relationships (2k)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Table Relationships (2k)
- This topic has 6 replies, 3 voices, and was last updated 23 years, 1 month ago.
AuthorTopicWSMikeTrotter
AskWoody LoungerMarch 1, 2002 at 10:33 pm #367635Viewing 0 reply threadsAuthorReplies-
WSpatt
AskWoody LoungerMarch 2, 2002 at 1:32 am #573797I wrote a Dog Registration system some time back and it had similar requirements.
All I did was to put the dog’s number into a field called DogID and the dog’s sire number into the SireID on the same record and the dog’s Dam number into the DamID also on the same record.
So one record had a dog’s Sire and Dam number in it.In this way I had a way of tracing the family tree backwards from the dog record.
I did not have a requirement of going forwards (ie. tracing the children and their children etc., that’s if you call dogs children).
HTH
Pat
-
WSMikeTrotter
AskWoody Lounger -
WScharlotte
AskWoody LoungerMarch 2, 2002 at 9:30 pm #573881Sorry, but I don’t understand why you would have a grandfatherID field at all. At most you would need a field for FatherID and MotherID, since each of those related records would have their own FatherID and MotherID in them. So your father’s FatherID is your paternal grandfather and your mother’s FatherID is your maternal grandfather. You don’t need the key in your own record because you can reach it through your father’s or mother’s record. Am I missing something?
-
WSMikeTrotter
AskWoody LoungerMarch 3, 2002 at 3:18 pm #573972Thanks Charlotte,
Maybe its me that’s missing something. I am replying immediately on reading your post. I shall think about it overnight, but I can’t see immediately how I can write a query to display My Father’s details and his father’s details unless his father’s ID is in my record. Yet something in the back of my mind says you are probably right, but I can’t see how to display father and grandfather (or more precisely how to set up a query which will do that. Hope you are right as it will simplify the whole db considerably.
Many thanks for your time
Mike -
WScharlotte
AskWoody Lounger -
WSMikeTrotter
AskWoody LoungerMarch 3, 2002 at 10:24 pm #573999Thanks Charlotte,
As I was thinking after your earleir email I realised that might be the solution. I have to say that the various occasions when you add a second instance of a table are non-intuitive.
Further in this example if I am going back several generations (>5) the query becomes a little cumbersome. Thank you anyway. I shall play with your solution and see how it works out. I had also used a tree control to show the various generations, though I programmed it manually. I hope to get some spare time once I have finished teaching this 12 week course and then I will experiment a bit more.
Many thanks for all your time and help. Something like not seeing wood for trees…I may be back!
Best wishes
Mike
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 hour, 58 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
5 hours, 57 minutes ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
5 hours, 58 minutes ago -
Unable to eject external hard drives
by
Robertos42
5 hours, 35 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
25 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
6 hours, 3 minutes ago -
Synology limits hard drives
by
Susan Bradley
1 day, 10 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
12 hours, 36 minutes ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
1 day, 16 hours ago -
Upgrade Sequence
by
doneager
1 day, 9 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 9 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
8 hours, 23 minutes ago -
The incredible shrinking desktop icons
by
Thumper
2 days, 13 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
2 days, 14 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 10 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
23 hours, 58 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
2 days, 4 hours ago -
Speeding up 11’s search
by
Susan Bradley
12 hours, 25 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
3 days, 14 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
3 days, 21 hours ago -
24H2 fixed??
by
CWBillow
2 days, 14 hours ago -
Uninstalr Updates
by
jv16
4 days, 2 hours ago -
Apple zero days for April
by
Susan Bradley
3 days, 7 hours ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
3 days ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
5 days, 1 hour ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
4 days, 8 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 days, 15 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 days, 10 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.