D
dee
Hello,
I am trying to import data that is currently in Excel 2003 to Access 2003.
My worksheet contains personal data with columns including:
Province
City
Address
Tel Number
email address
FirstName
LastName
DOB
etc.
The Access tables to which I wish to import the data are as follows:
tblProvinces
ProvID (Autonumber PK)
ProvinceName
tblCities
CityId (AutonumberPK)
CityName
ProvID (FK from tblProvinces)
tblDwellings
DwellingID (Autonumber PK)
CityID (FK from TblCities)
Address
PhoneNumber
etc.
tblParticipants
PptID (AutoNumber PK)
DwellingID (FK from tblDwellings)
FirstName
LastName
Email
DOB
etc.
In Excel, there is one row per person, each containing the province, city,
address, firstname, lastname, email, dob, etc.
I'm not certain what the best way is to import the data so that it relates
as per my tables.
My first instinct is to add columns in Excel that would look up the address
and, if it's the same as the row above, put in the same identifier number.
When the address changes, start with the next number. That would at least
put an identifier for all members of the same dwelling.
Once I import the data, I could then create an update query that would
update the dwelling ID FK into the tblParticipants.
I'm reallly not certain how to import the data so that it flows properly
with Cities relating to Provinces, and dwellings relating to a particular
city and participants relating to a particular dwelling.
I hope I have explained this clearly. Any assistance would be greatly
appreciated!
I am trying to import data that is currently in Excel 2003 to Access 2003.
My worksheet contains personal data with columns including:
Province
City
Address
Tel Number
email address
FirstName
LastName
DOB
etc.
The Access tables to which I wish to import the data are as follows:
tblProvinces
ProvID (Autonumber PK)
ProvinceName
tblCities
CityId (AutonumberPK)
CityName
ProvID (FK from tblProvinces)
tblDwellings
DwellingID (Autonumber PK)
CityID (FK from TblCities)
Address
PhoneNumber
etc.
tblParticipants
PptID (AutoNumber PK)
DwellingID (FK from tblDwellings)
FirstName
LastName
DOB
etc.
In Excel, there is one row per person, each containing the province, city,
address, firstname, lastname, email, dob, etc.
I'm not certain what the best way is to import the data so that it relates
as per my tables.
My first instinct is to add columns in Excel that would look up the address
and, if it's the same as the row above, put in the same identifier number.
When the address changes, start with the next number. That would at least
put an identifier for all members of the same dwelling.
Once I import the data, I could then create an update query that would
update the dwelling ID FK into the tblParticipants.
I'm reallly not certain how to import the data so that it flows properly
with Cities relating to Provinces, and dwellings relating to a particular
city and participants relating to a particular dwelling.
I hope I have explained this clearly. Any assistance would be greatly
appreciated!