473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Connecting Family and Friends relationships in Access

RockKandee
89 64KB
I am using Access 2013 in Windows 8

I have a Student table that holds all students with their contact and personal information. Each student has a primary key auto number.

I have students that have relationships with other students that I want to track.

I do not care about tracking non student relationships (ie; I don't care who a 14 year old student's mother is unless she also takes a class.)

If father, mother, 2 sons, 1 daughter, and a friend of the family take a class, I want to see these connections.

I want to see these connections when:
I view a student's record.
or
Put together a mailing list. (same address or not)

I am not sure the best way to set this up.

I was thinking about making a Relationship table with:

Student Id (from the Student table)
Relationship (e.g. Spouse, Siblings, Significant other, Friends)
Student Id (from the Student table)

If this is the best route to take....

Would I

John - spouse - Jenny
Jenny - spouse - John
Jenny - parent - Bill
Bill - child - Jenny
Bill - child - John
John - parent - Bill

even though that would duplicate the same information.

If I only entered John - spouse - Jenny
Jenny's relationship to John wouldn't show up when I use the first field to retrieve info. I am not sure how else to retrieve the info unless I can always use the first field when referring to a specific student.

Any thoughts on this?

Thanks :D
Feb 5 '14 #1
3 1367
ADezii
8,834 Expert 8TB
  1. You could add a new Relationships Table with 3 Fields:
    1. [StudentID] - relates back to Students Table in a MANY to 1 Relationship.
    2. [Relates To] - Numeric (LONG) that contains the StudentID to whom this individual is related.
    3. [Type] - LONG that relates to a Types Table (tblType) in a MANY to 1 Relationship.
  2. tblType consists of a AutoNumber, PK Field that relates back to the [Type] Field in the Relationships Table.
  3. A [Type] Field (TEXT) that contains the Type of Relationship, namely: (Son, Daughter, Cousin, Niece, Mother, etc.).
  4. A Query consisting of the Students Table joined to itself along with tblType would produce the desired results.
Feb 5 '14 #2
RockKandee
89 64KB
If I had a mother/daughter relationship....
Would I make the following records?

A. Mom's student ID - B. Child's student ID - C. Mother

AND

A. Child's student ID - B. Mom's student ID - C. Daughter
Feb 5 '14 #3
ADezii
8,834 Expert 8TB
The way I see it, just the related Record (Daughter) for the Mother woould tell the story.
Feb 6 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: mshetty | last post by:
Hi, I have a class x with two public methods xmethod1 and xmethod2. I want to derive a class y such that it can access only xmethod2. I have done the following and it compiles please let me know...
5
by: Al | last post by:
Hi, I am looking for sample VB.net code for working with Access 97 database. I know how to work with SQL but I dont know how to read and writ into access 97. Any help is very much appreciated. ...
4
by: kthiagar | last post by:
Hi I am trying to connect to a password protected access file from VB.NET. I have no problem in connecting to Access, if I remove the password. This is what I am doing: In the server explorer,...
3
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use...
2
by: gmccammon | last post by:
I am working on a class assignment where I have to connect to an MS Access database. The perl script is contained in a separate file *.pl I went into Control panel/ODBC/ and selected Microsoft...
0
by: bluepiper | last post by:
Im going to create a project with vb6 and ms access. I have to set password to open the DB for security. In vb6, how can i connect the database in data environment through data link properties...
3
by: anusha77 | last post by:
Hi, how can I connect a feedbeck form developed in HTML to access database. when i click on send information of form should be store in database. how do i do the ASP coding?
30
vikas1111
by: vikas1111 | last post by:
This is the code which i have written..... Option Explicit Dim c As New ADODB.Connection Dim cm As ADODB.Command Dim rs As New ADODB.Recordset Private Sub regno_Change() c.Open...
1
FLEB
by: FLEB | last post by:
I'm working on a PHP/MySQL site with social networking and "message blast" functionality, and I'm not sure what the best method to represent multiple levels of interpersonal relationships in the...
0
by: fatimang | last post by:
can someone give me codes or things to use on connecting Python to MS Access. thank you in advance.. GOD BLESS..
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.