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, 2 months 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
-
Meet Gemini in Chrome
by
Alex5723
22 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
31 minutes ago -
Trump signs Take It Down Act
by
Alex5723
8 hours, 30 minutes ago -
Do you have a maintenance window?
by
Susan Bradley
43 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
10 hours, 3 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
11 hours, 49 minutes ago -
Help with WD usb driver on Windows 11
by
Tex265
16 hours, 59 minutes ago -
hibernate activation
by
e_belmont
20 hours, 44 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day, 3 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day, 3 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 hour, 44 minutes ago -
Out of band for Windows 10
by
Susan Bradley
1 day, 8 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
1 day, 15 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
1 day, 22 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
8 hours, 59 minutes ago -
Auto Time Zone Adjustment
by
wadeer
2 days, 3 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 1 hour ago -
Manage your browsing experience with Edge
by
Mary Branscombe
34 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
18 hours, 6 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
1 day ago -
Apps included with macOS
by
Will Fastie
22 hours, 22 minutes ago -
Xfinity home internet
by
MrJimPhelps
19 hours, 10 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 20 hours ago -
Debian 12.11 released
by
Alex5723
3 days ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
3 days, 4 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
2 days, 7 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
11 hours, 20 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
3 days, 21 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
3 days, 11 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.