Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple contacts for one company

76 views
Skip to first unread message

twrktec

unread,
Sep 28, 2009, 5:52:08 PM9/28/09
to
I am just starting out with Access 2007. I am creating a contact database.
Several companies that we deal with have multiple contacts. Is it easier to
list the same company several times with each contact or is there an easier
solution to having one company listing with several contacts?

Gina Whipp

unread,
Sep 28, 2009, 6:07:26 PM9/28/09
to
twrktec,

It is correct to have one Company per multiple Contacts...

tblCompanyProfile
cpCompanyProfileID (PK-Autonumber)
cpCompanyName
cpAddress1
cpAddress2
etc...

tblCompanyContacts
ccCompanyContactID (PK)
ccCompanyProfileID (FK)
ccFirstName
ccLastName
etc...

Perhaps you should take a look at...

Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html

The Access Web resources page:
http://www.mvps.org/access/resources/index.html

A free tutorial written by Crystal (MS Access MVP):
http://allenbrowne.com/casu-22.html

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials


http://www.databasedev.co.uk/table-of-contents.html

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"twrktec" <twr...@discussions.microsoft.com> wrote in message
news:5D232584-E928-4E09...@microsoft.com...

John W. Vinson

unread,
Sep 28, 2009, 6:08:43 PM9/28/09
to

You're using a relational database; use it relationally!

You have a perfectly classic one to many relationship. This should be handled
by having a Company table, related one-to-many to a Contacts table, using the
CompanyID as the primary key of Companies and as a foreign key in the Contacts
table.

There is a A2007 Template for exactly this application, you may want to
download it and check it out. Here are some other good resources to get you
started:

Roger Carlson's tutorials, samples and tips:
http://www.rogersaccesslibrary.com/

A free tutorial written by Crystal:
http://allenbrowne.com/casu-22.html

A video how-to series by Crystal:
http://www.YouTube.com/user/LearnAccessByCrystal

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials

--

John W. Vinson [MVP]

Jerry Whittle

unread,
Sep 28, 2009, 6:21:02 PM9/28/09
to
You need at least two tables.

Table 1: Companies

Table 2: Contacts

The Contacts table should have the primary key from the Companies table as
the foriegn key to link the records together.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

Bob Quintal

unread,
Sep 28, 2009, 6:36:21 PM9/28/09
to
=?Utf-8?B?dHdya3RlYw==?= <twr...@discussions.microsoft.com> wrote
in news:5D232584-E928-4E09...@microsoft.com:

standard practice is to define the company once in one table, which has
a primary key of CoID, usuallly an autonumber, and a separate table for
the contacts that contains a copy of that CoID on each row, one row per
contact. It is a One to Many relationship, and relationships are why
Access is a Relational Database.

You then can link the tables in a query, form or report on the CoID
relation.


--
Bob Quintal

PA is y I've altered my email address.

George

unread,
Sep 28, 2009, 11:31:52 PM9/28/09
to
FWI:


MS does have an Access 2007 "contact management" template available for
download, but it consists of a single flat table.

The color scheme is pretty cool, though.

"John W. Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:rrc2c51p23bl9a41g...@4ax.com...

0 new messages