Modelling Personnel, Companies and Addresses in Access.

TheArgyll

New Member
Joined
Oct 26, 2015
Messages
14
Good Morning All,
I was wondering if anyone could assist me with modelling some data. I am sure its not too complex but it falls outside the field I normally work in.

I have been asked to create a database that will model the Personnel, Companies and Addresses of everyone working on site. I am not having a lot of luck with the basic structure of this database and have included the details below.

I have three tables.

1. Personnel
First Name
Family Name
Badge Number
...

2. Company
Name
Contact Person
Contact Email
Contact Number
...

3. Address
Address 1
Address 2
Address 3
Town
Country
Postcode
...

Each member of Personnel should have 1 or 2 Addresses (Home Address and Work Address (for expats)).
Each member of Company should have 1 Address only (Business Address).

The specific trouble I am having is defining Primary Keys and Relationships between this data.
Any assistance anyone can lend would be greatly appreciated!

Thanks,
Rob
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I'm sure thats what the NorthWinds Database was designed to provide, the methodologies to link users and suppliers
 
Upvote 0
Hi Mole999,
Thanks for getting back to me with this. Is this database packaged with Access or do I need to download it?

Thanks again,
Rob
 
Upvote 0
Thanks everyone. I did a quick Google and found out how to load the Northwinds template. Now I just need to reverse engineer it to see how it all hangs together. I will have a look at the whitepaper too alansidman.

Thanks again for your help.
Rob
 
Upvote 0
Thanks everyone. I did a quick Google and found out how to load the Northwinds template. Now I just need to reverse engineer it to see how it all hangs together. I will have a look at the whitepaper too alansidman.

Thanks again for your help.
Rob

Rob,

I would not recommend modeling and table design off Northwind (or most of the Access templates). While it does show some cool stuff you can do with Accces, the table design is poor. They use spaces in table and field names which is a HUG NO NO. There have repeating fields which means it is not properly normalized.


See: The Ten Commandments of Access
*** Most Microsoft created Access templates violate commandments #1 and #3.

I highly recommend having one table for people/organizations. A single table for all contacts.

Tables:
Contacts - Names
Contact_Address -A child table to hold all the record for each address type.
Contact_Relations - this will be used to relate contact record. For example employees to companies.

If you want an example that does this really well then check out: Contacts -- Names, Addresses, Phones, Email, Websites


 
Upvote 0
Thanks very much Boyd.
I am having a look at this just now, it looks like its pretty much what I need plus some.

Thanks again,
Rob
 
Upvote 0
Thanks very much Boyd.
I am having a look at this just now, it looks like its pretty much what I need plus some.

Thanks again,
Rob

Rob,

You're welcome.

My friend Crystal did a great job with that application. It is a great fully functioning Access application that shows lots of great examples of database normalization and programming techniques.. You can use this database as a starting point.
 
Last edited:
Upvote 0
Good Morning All,
I have modeled my data but I have one remaining relationship to complete and its giving me a headache. Literally.

Each Person in my table has a Supervisor. Each Supervisor has one or more Persons working for them. But also each Supervisor is a Person.

How can I model this even if it means changing table structures?

Thanks,
Rob
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,252
Members
451,757
Latest member
iours

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