473,667 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2000 Table Relationship Question

I have a table consisting of people and their attributes. I would
like to create a relationship matrix table that records the
relationships between the people. So the two tables would look
something like this:

tblPeople

*ID, AutoNumber
LastName, Text
FirstName, Text
Height, Text
Weight, Text
etc...

tblRelationship Matrix

*Person1, Lookup (tblPeople)
*Person2, Lookup (tblPeople)
Relationship, Memo

* - Primary Key

I can't figure out a way to make this table work correctly. I'd like
each combination of two people to be unique. Would anyone have
suggestions on how to do this cleanly?

Thanks,

MW
Nov 13 '05 #1
3 1618
Mason,

Can you give us a scenario that you are trying to manage with relationships?

Plug some data into the structure, and maybe that will help us and you help
yourself. Give us an example of the rows and columns actually representing
the data?
IE what does Person1 lookup. Person2.Lookup? Is the lookup the ID of
People table?

Data really tells the story!

Barry
"Mason" <ma***@codemonk ey.cc> wrote in message
news:eb******** *************** ***@posting.goo gle.com...
I have a table consisting of people and their attributes. I would
like to create a relationship matrix table that records the
relationships between the people. So the two tables would look
something like this:

tblPeople

*ID, AutoNumber
LastName, Text
FirstName, Text
Height, Text
Weight, Text
etc...

tblRelationship Matrix

*Person1, Lookup (tblPeople)
*Person2, Lookup (tblPeople)
Relationship, Memo

* - Primary Key

I can't figure out a way to make this table work correctly. I'd like
each combination of two people to be unique. Would anyone have
suggestions on how to do this cleanly?

Thanks,

MW

Nov 13 '05 #2
ma***@codemonke y.cc (Mason) wrote in message news:<eb******* *************** ****@posting.go ogle.com>...
I have a table consisting of people and their attributes. I would
like to create a relationship matrix table that records the
relationships between the people. So the two tables would look
something like this:

tblPeople

*ID, AutoNumber
LastName, Text
FirstName, Text
Height, Text
Weight, Text
etc...

tblRelationship Matrix

*Person1, Lookup (tblPeople)
*Person2, Lookup (tblPeople)
Relationship, Memo

* - Primary Key

I can't figure out a way to make this table work correctly. I'd like
each combination of two people to be unique. Would anyone have
suggestions on how to do this cleanly?

Thanks,

MW

Join the tables in a query. Just add Person multiple times and alias it.
Nov 13 '05 #3
Sure, Barry. I'll give an example of what's contained in tblPeople.

ID: 1
LastName: Doe
FirstName: John
Height: 5'10"
Weight: 175
DOB: 7/7/77

ID: 2
LastName: Smith
FirstName: Lisa
Height: 5'3"
Weight: 150
DOB: 5/5/75

Now the relationship matrix:

Person1: 1
Person2: 2
Relationship: John thinks Lisa is pretty cool, although she's been
weird lately. Everyone in the office makes fun of her weight,
although John only goes along with it half-heartedly.

Person1: 2
Person2: 1
Relationship: Lisa has overheard John call her fat while he was
laughing it up with other coworkers. Already self-consious about her
weight, she strikes back by saying negative things about his work
habits to anyone in a position of influence.

What I don't want:

Person1: 1
Person2: 1

I also want to enforce referential integrity.

I hope that helps,

MW

"Barry Young" <yo******@insig htbb.com> wrote in message news:<7JM1d.194 271$mD.50318@at tbi_s02>...
Mason,

Can you give us a scenario that you are trying to manage with relationships?

Plug some data into the structure, and maybe that will help us and you help
yourself. Give us an example of the rows and columns actually representing
the data?
IE what does Person1 lookup. Person2.Lookup? Is the lookup the ID of
People table?

Data really tells the story!

Barry
"Mason" <ma***@codemonk ey.cc> wrote in message
news:eb******** *************** ***@posting.goo gle.com...
I have a table consisting of people and their attributes. I would
like to create a relationship matrix table that records the
relationships between the people. So the two tables would look
something like this:

tblPeople

*ID, AutoNumber
LastName, Text
FirstName, Text
Height, Text
Weight, Text
etc...

tblRelationship Matrix

*Person1, Lookup (tblPeople)
*Person2, Lookup (tblPeople)
Relationship, Memo

* - Primary Key

I can't figure out a way to make this table work correctly. I'd like
each combination of two people to be unique. Would anyone have
suggestions on how to do this cleanly?

Thanks,

MW

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15499
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access wizard..... If I have to write vb code, where is a sample??? Or do I import the excel in to a new spreadsheet and then write some kind of querey to move the data from that table
1
2092
by: Wes Dabney | last post by:
My name is Wes and I have been working with Access for a few years now, though I know I'm not an expert, this forum has helped me many times without me needing to post a question. Alas, I have found a problem where the answer was not as obvious. The database I'm working on is very simple. It pulls from multiple source data files and reorganizes the data. The relationship is created by relating the city name and or county name fields...
3
4076
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as default. But, still face the same problem: Database corrupted! (But, it allows to be repaired) 2) I found that the relationship linkage between those related tables(which corrupted) was disconnected/lost after problem (1)
2
3101
by: Terry | last post by:
Hello, I wonder if anyone can shed light on this problem for me. I have an Access 97 front end with an SQL 2000 database. There is a Business main form with an Owner subform and corresponding tables of the same names. A third table BusinessRel records the BusinessID (linked to Business table) and OwnerID (linked to Owner table). This is what happens when the Business main form is loaded. I enter the BusinessID and other stuff, then as...
33
2795
by: Steve | last post by:
One of our clients recently upgraded their Office version to 2003. When they tried to run our program (written in Access 2000), they ended up with the wrong data. My coworker and I have tested this problem and found that it ONLY occurs on Windows XP machines running Office 2003. The problem ends up being that ONE 1-to-1 join in ONE query within the application does not perform as a 1-to-1 join. It acts as though there is no join at all....
4
6395
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database to look a and I am loosing tremendious amounts of time trying to organize it so that I could view it. Regards, Alexandre Brisebois
6
1424
by: NickName | last post by:
This question probably has been asked many a time. And yet I feel it is still relevant for one thing a search on this NG does not produce a desirable answer. It is kind of disappointing that MS would not be able to transfer ER relationship from an Access db to a SQL Server 7/2000-based one, the upgraded db/imported tables sitting on the SQL Server would not have PKs, say, you have 100 user tables, you have to first recreate PKs for each...
1
1115
by: Hammy | last post by:
Hi there, Wonder if you can help me with my dilema ! ? I currently have an access2000 database which works just fine, but when I come to open it with access2002 the relationship table is damaged.. All the links have gone and if I try to add some and then save it in 2002, they are gone when opened again ! I have tried exporting all the tables and queries in the 2000 database to a clean 200 database and created the relationship table...
4
1937
by: pokerboy801 | last post by:
OK, I will try to explain this as clearly and as concise as possible. I am using Access, which has three MS Excel Linked tables, to store call center metrics for reps. My Excel workbook has three separate worksheets, all linked to Access. I have a query that performs some minor calculations, not to hard, and will be ued to drive a report. Here is my problem, I only have about 14 rows of data in each table as we only have three reps. ...
0
8458
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8366
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8790
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8565
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7391
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.