I have office version 2000 at home and 2002 at work. This is what I've been trying...
In Access, create a NEW database and name it.
FILE >> Get External Data >> Import
In the dialog, navigate to my excel spreadsheet, select it, and click Import
In the import wizard:
» Show Worksheets >> employees east (from list) >> NEXT
» First row contains column headings >> NEXT
» Import into a new table >> NEXT
» EmployeeNumber column Indexed option select "Yes (No Duplicates)"
>> NEXT
» Primary Key (with "choose my own" I get the following message:
"Error creating primary key on field "EmployeeNumber" (Index or
Primary Key cannot contain a NULL value)")
(when I select "no primary key" I get the message that says not all of
my data was imported correctly -- and it turns out that the
alphanumeric employee numbers were ignored completely)
>> NEXT
My employee numbers consist of either 7 digits (#######) or 3/4 letters and 4 numbers (ABC#### -- old employee system).
My spreadsheet was originally sorted on employee number, which put the numbers on top and the alphanumerics at the bottom. When I tried to import it this way, it created the table with the EmployeeNumber field being a number datatype, and therefore would not import the alphanumeric employee numbers (although it did display the numbered ones correctly (1234567 instead of 1.0465e+006). Employees with the alphanumeric employee numbers were brought in with the EmployeeNumber field blank.
I tried it again with the alphanumerics on top, and it correctly gave the EmployeeNumber field a datatype of text, and it brought in all the employee numbers, but I'm still having two problems:
1) numeric employee numbers are brought in with scientific notation format (1.0465e+006) instead of 1234567, and
2) there are a number of blank rows at the top of my table that do not exist in my spreadsheet.
I figured out how I could use my original spreadsheet to import that table and then go into the table design to make changes, add my primary key, type in the alphanumeric employee numbers (there's only about 10 of us), etc. to get that table the way I want it. But that seems like an awful lot of work for something that should be automatic. Additionally, I have other sheets (job titles, badges with expiration dates, security clearances with expiration dates, certifications, training requirements and milestones, etc) that are all keyed on the employee number that are going to have to be imported to make this thing viable.