D
David F-B
Hi All
Sorry if this a blindingly obvious question to most people, but ...
I have a single table database of contacts. Some contacts are members
of my club, some are not. Contacts are employees of different
companies. They often move about a lot.
At present, when a person moves from one company to another, I get the
names and addresses of the companies. Then I write them down on a
piece of paper. Then I retype the mover's details with the new
company address. This leads to errors when I mis-type things. I'm
wondering if it is ok to have company and people details in the same
table, even though they are employees of that company.
I suppose ideally I want a system that allows me to label the
companies X, Y Z. When someone moves I want to be able to put into a
box that he has moved from X to Y. Kind of like having an arrow
pointing from one set of details and moving it so it points to another
set of details.
I suppose I need to break up the table and put the people in one table
and the company details (address, phone numbers, etc) in another? If
I stick an autonumber field in each table, I would get unqie numbers
for each person and a unique number for each company (after I spend
time filtering out all the duplicated company entries in the existing
database table). After that, it becomes a matter of linking the two
tables together somehow to show that person number such and such has
moved from company 01 to company 02. The actual company details such
as address will be in the company table and should not need altering.
I suppose I just want to have a company field in the person table and
alter the value for that field.
At present I'm just thinking about using autogenerated numbers. Is
there any process for autogenerating letters or words as a reference
code?
It might be easiest if I have the list of companies in the company
table as a list box in a form showing the person's details. Is there
a way of creating a list box which both shows a list of the entries in
the company table (ie the companies) while also allowing me to add new
companies if need be?
I have looked at the Northwind example database, but it doesn't seem
terribly appropriate to my situation (making a contacts database) or
my level of compentence (or complete absence thereof).
Profound thanks for any light that can be shone into the gloom of my
ignorance.
David F-B
Sorry if this a blindingly obvious question to most people, but ...
I have a single table database of contacts. Some contacts are members
of my club, some are not. Contacts are employees of different
companies. They often move about a lot.
At present, when a person moves from one company to another, I get the
names and addresses of the companies. Then I write them down on a
piece of paper. Then I retype the mover's details with the new
company address. This leads to errors when I mis-type things. I'm
wondering if it is ok to have company and people details in the same
table, even though they are employees of that company.
I suppose ideally I want a system that allows me to label the
companies X, Y Z. When someone moves I want to be able to put into a
box that he has moved from X to Y. Kind of like having an arrow
pointing from one set of details and moving it so it points to another
set of details.
I suppose I need to break up the table and put the people in one table
and the company details (address, phone numbers, etc) in another? If
I stick an autonumber field in each table, I would get unqie numbers
for each person and a unique number for each company (after I spend
time filtering out all the duplicated company entries in the existing
database table). After that, it becomes a matter of linking the two
tables together somehow to show that person number such and such has
moved from company 01 to company 02. The actual company details such
as address will be in the company table and should not need altering.
I suppose I just want to have a company field in the person table and
alter the value for that field.
At present I'm just thinking about using autogenerated numbers. Is
there any process for autogenerating letters or words as a reference
code?
It might be easiest if I have the list of companies in the company
table as a list box in a form showing the person's details. Is there
a way of creating a list box which both shows a list of the entries in
the company table (ie the companies) while also allowing me to add new
companies if need be?
I have looked at the Northwind example database, but it doesn't seem
terribly appropriate to my situation (making a contacts database) or
my level of compentence (or complete absence thereof).
Profound thanks for any light that can be shone into the gloom of my
ignorance.
David F-B