G
Guest
I am trying to set up a db using Office 2000 on a WinXP machine, importing
data from Excel. I have Excel files with at least 5000 entries and about 75
column headings/Field names.
I understand that the primary key needs to be set up for each individual,
however, some individuals have two or three listings because their names have
changed (Marriage, legal name change), and some individuals have numerous
entries due to repetitive entries under one Field (several dates, multiple
awards, etc.)
I tried to import all the data at once, but the list of errors was massive.
Everything from a blank space in a cell to cells improperly formatted. Due
to the size of the spreadsheet, I decided to start off by importing only the
Name Fields in order to get a PK for each individual.
I did this by sorting the names in Excel, and adding two columns. In one
column I numbered each entry sequentially using this as my control to get
back to the same order, and copied that column to the second one.
Then I went through the whole list, and in the second column deleted all
numbers of those entries which were repeats of the same person. Thus when I
sorted using the second column, I had a list of all individuals without
repeats. Then I added a third column and numbered each entry sequentially
for those second column entries. I imported the names and the third column
numbers into Access using the Wizard, and created a PK out of the third
column.
And now I have reached the Peter Principle (at the end of my knowledge).
How do I attack the importation of the rest of the data, i.e. both the
multiple names for the same individuals, and the rest of the columns of data
which belong to those individuals?
And a related question: If I import two columns of data (Awards and the PK
number for those individuals who got the awards) into a new table and
normalize it, do I set up a relationship between the PK of the names tbl and
the PK of the Awards tbl?
I guess what causes me great confusion is that I must have a PK that is
unique, yet I have three people who are all the same person. My apologies
for my obtuseness, and my thanks for your help and patience.
data from Excel. I have Excel files with at least 5000 entries and about 75
column headings/Field names.
I understand that the primary key needs to be set up for each individual,
however, some individuals have two or three listings because their names have
changed (Marriage, legal name change), and some individuals have numerous
entries due to repetitive entries under one Field (several dates, multiple
awards, etc.)
I tried to import all the data at once, but the list of errors was massive.
Everything from a blank space in a cell to cells improperly formatted. Due
to the size of the spreadsheet, I decided to start off by importing only the
Name Fields in order to get a PK for each individual.
I did this by sorting the names in Excel, and adding two columns. In one
column I numbered each entry sequentially using this as my control to get
back to the same order, and copied that column to the second one.
Then I went through the whole list, and in the second column deleted all
numbers of those entries which were repeats of the same person. Thus when I
sorted using the second column, I had a list of all individuals without
repeats. Then I added a third column and numbered each entry sequentially
for those second column entries. I imported the names and the third column
numbers into Access using the Wizard, and created a PK out of the third
column.
And now I have reached the Peter Principle (at the end of my knowledge).
How do I attack the importation of the rest of the data, i.e. both the
multiple names for the same individuals, and the rest of the columns of data
which belong to those individuals?
And a related question: If I import two columns of data (Awards and the PK
number for those individuals who got the awards) into a new table and
normalize it, do I set up a relationship between the PK of the names tbl and
the PK of the Awards tbl?
I guess what causes me great confusion is that I must have a PK that is
unique, yet I have three people who are all the same person. My apologies
for my obtuseness, and my thanks for your help and patience.