473,387 Members | 1,535 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,387 software developers and data experts.

Company and multiple addresses DB design

At the moment I have simple Access DB with 3 tables Companies,
Contacts and Activities.

In the Company table we have stored the address fields
Address
Street
Suburb
City
Code

Company ---Contacts ---Activities (1 ---many relationships)

This works fine for 97% of contacts on the database.
A problem happens when a contact has a different address from the one
in the Companies table.
For example, a contact is based in one city but the head office of the
company is in another.

What is the best way to handle this?

Move the addresses to the contact table so address is per contact?
Move the addresses to a address separate address table and relate to
the company so that company has multiple addresses?
Move the addresses to a address separate address table and relate to
the contact?

Also something to consider from the user perspective.

At the moment interface used is a main form in datasheet view so a
single row would for be.

Company name, Job title, Salutation, Fname, Sname, Address, Street,
Suburb, City, Code...

Where Company and the address fields are in the company table but the
other fields in the contacts fields.
A user uses this main form and to add a new contact would add a new
row by putting the company ref_no into the query into a new row which
would then fill in company info like name and address automatically.

Please advise considering the interface as well as db design.

Apr 22 '07 #1
4 6360
Answered in microsoft.public.access.tablesdbdesign
Apr 22 '07 #2
pdm
Move the addresses to a address separate address table and relate to
the company so that company has multiple addresses?
Move the addresses to a address separate address table and relate to
the contact?

I would make a table for your companies and if a company has more then
one address just put a new record with the same name. You can specify
eg. Company Name Head Office, Company Name Division... Each company
has 1 or many contacts. Open your form starting with the Companies and
add along a subform the related contacts. Address fields and Companies
should belong together.

I discovered also a problem with my design of Companies and Contacts
and perhaps it could also happens to you. I had companies and many
contacts related to the company. But the problem I discoverd was that
some contacts belong to more then one companies. e.g. some contacts
where CEO of more then one company. Here I needed to change the
relationsship with a between table (many to many).

just some ideas,
patrick.

Apr 22 '07 #3
the best way is to use SQL Server

MDB is for lamers and retards

SERIOUSLY


On Apr 22, 5:44 am, deekay <deek...@gmail.comwrote:
At the moment I have simple Access DB with 3 tables Companies,
Contacts and Activities.

In the Company table we have stored the address fields
Address
Street
Suburb
City
Code

Company ---Contacts ---Activities (1 ---many relationships)

This works fine for 97% of contacts on the database.
A problem happens when a contact has a different address from the one
in the Companies table.
For example, a contact is based in one city but the head office of the
company is in another.

What is the best way to handle this?

Move the addresses to the contact table so address is per contact?
Move the addresses to a address separate address table and relate to
the company so that company has multiple addresses?
Move the addresses to a address separate address table and relate to
the contact?

Also something to consider from the user perspective.

At the moment interface used is a main form in datasheet view so a
single row would for be.

Company name, Job title, Salutation, Fname, Sname, Address, Street,
Suburb, City, Code...

Where Company and the address fields are in the company table but the
other fields in the contacts fields.
A user uses this main form and to add a new contact would add a new
row by putting the company ref_no into the query into a new row which
would then fill in company info like name and address automatically.

Please advise considering the interface as well as db design.

Apr 23 '07 #4
"Susie DBA [MSFT]" <su******@hotmail.comwrote

Susie DBA is an alias of a a r o n k e m p f, a troll who continues to make
a fool of himself in public here in the newsgroups. And, as is obvious to
most everyone, despite using the [MSFT] to impersonate one, Susie/a a r o n,
is not a Microsoft employee. Her/his words are intended to hurt Microsoft,
not to help you, so heed them at your own risk.

Larry Linson
Microsoft Access MVP
Apr 24 '07 #5

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

Similar topics

5
by: Jay Villa | last post by:
I want to store multiple mailaddress like home address and shipping address Sometimes addresses will be more than two. I am thinking about storing the details as a dictionary object. Any other...
2
by: (Pete Cresswell) | last post by:
For better or worse, I have chosen to implement mailing addresses in a particular application as a separate table. One Person ==> Many Addresses. It is a database for managing school reunions...
0
by: misscrf | last post by:
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I workd for. My issue is with good form design. I have a main...
2
by: .Net Newbie | last post by:
Hello, I am currently coding my ASP.Net pages in c# and have run into a question concerning Emails. I have four objects on a page (six including 2 buttons). The first is a subject line...
2
by: deko | last post by:
Can I select from multiple tables/queries in a single SQL statement? For example: SELECT , , FROM qryThis, qryThat, tblOtherThing Does this work only with Jet, or does SQL just work like...
1
by: Phoenix_ver10 | last post by:
I have a mailing list with multiple names going to the same addresses. I need one address with all the names for that address on it. I checked out the example on microsoft's site, but A: It doesn't...
4
by: HLCruz via AccessMonster.com | last post by:
I am working with a database that has client information separated in to 4 related tables - tFolder, tAddress, tEmail, tPhone number. In addition there are related tables tGifts and tCalls. The...
25
by: Fred | last post by:
Our server has 8 IPs with 121.232.21.1 as default (example). I wrote a windows service that downloads podcasts (mp3s) off the net. However every time this service runs it clogs down the entire...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...

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.