Access Newbie database design question

sunrise06

Active Member
Joined
Oct 27, 2006
Messages
262
Office Version
  1. 365
Platform
  1. Windows
I am trying to learn Access by creating a database from scratch. This database will contain contacts that are members of different groups. There are also spouses that belong to their own set of groups but I want to be able to associate the relationship. Do I need two separate tables, one that will contain the spouses names and contact information or should I put all contacts into one table and add a field for the spouses name?

Any advice will be greatly appreciated.

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It would depend on what information (details) you would provide for the spouses.
If every person on the contact list (incl. spouses) will receive the same details then I would do it like this:
all persons (incl. spouses) in one table. Then all connections between them in another.

If all you will provide for the spouse is a name then a field for it in the contacts table should be enough.
 
Upvote 0
Thanks, same detailed contact information. I am not clear on what you mean by "all connections between them in another". Can you elaborate on that?
 
Upvote 0
well - you have a table with contacts:

ID | Name
----------
1 | john
2 | paul
3 | ann
...

lets say john is married to ann

then a table with relations:

RelID | Spouse1ID | Spouse2ID
------------------------------
1 | 1 | 3

However - there may be much better solutions out there.
 
Upvote 0
Thanks. Now what about the group they belong to. There is a regular set of groups and a spouse set of groups. Would you suggest I make two tables or one?
 
Upvote 0
Are you saying there are groups that only married couples can belong to? If that's true, just belonging to the group would mean you have a spouse. Why bother keeping track of it separately?
 
Upvote 0
No, there are groups for the members and there are groups for the spouses. In other words a member could join group A, B, or C and a spouse could join group X, Y, or Z. They can only be a member of one group but they are not in the same group.
 
Upvote 0
Which spouse can join X, Y, Z - the spouse thats married to the other spouse, or the reverse?
 
Upvote 0
Not sure how it matters. Spouse that is married. So let's simplify it by saying all the males can be in group A, B, or C and all females spouses can be in group X, Y, or Z.
 
Upvote 0
With out knowing your situation and exactly what you want. Access is great for building these types of relationships. I just wanted to drop in and give you some key words that you can google that will better lead you to your answer.

What you described is Database Normalization. When you have a correctly Normalized data you have minimized the amount of duplicate data in your database making it easier to build relationships and maintain the data.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top