R
Robert
I hope this isn't a dumb question and I hope I explain it a way you
can understand.
I have two tables in Access which I am trying to transfer to a new
database. The tables are in the following format. The ID fields are
autonumber fields. The reason the numbers are no longer in sequence is
because rows have been deleted over time. More than one contact can be
assoicated with a companyid, hence two contacts having a value of 23
in the companyidlookup field in the original contacts table.
original companies table original contacts table
companyid company contactid contactname companyidlookup
3 companyA 4 john smith 3
23 companyB 5 jane smith 23
24 companyC 9 john doe 23
30 companyD 10 jane doe 24
.....
new companies table new contacts table
companyid company contactid contactname companyIDlookup
1 companyA 1 john smith 1
2 companyB 2 jane smith 2
3 companyC 3 john doe 2
4 companyD 4 jane doe 3
......
I can create the new companyid field and the contactid field by
autofilling the fields after the data is transferred to the new
database. My problem is I have to change the companyIDlookup value in
the "new contacts table" to match the new companyID value in the "new
companies table" based on the companyid value in the original table.
Basically I am trying to figure out a way to use an Excel formula to
match the CompanyID value in the new contacts table to the CompanyID
value in the new companies table based on the values in the original
companies and contacts tables.
Is this possible? I'm sure it is just not very good with Excel
formulas. Any assistance is greatly appreciated.
Robert
can understand.
I have two tables in Access which I am trying to transfer to a new
database. The tables are in the following format. The ID fields are
autonumber fields. The reason the numbers are no longer in sequence is
because rows have been deleted over time. More than one contact can be
assoicated with a companyid, hence two contacts having a value of 23
in the companyidlookup field in the original contacts table.
original companies table original contacts table
companyid company contactid contactname companyidlookup
3 companyA 4 john smith 3
23 companyB 5 jane smith 23
24 companyC 9 john doe 23
30 companyD 10 jane doe 24
.....
new companies table new contacts table
companyid company contactid contactname companyIDlookup
1 companyA 1 john smith 1
2 companyB 2 jane smith 2
3 companyC 3 john doe 2
4 companyD 4 jane doe 3
......
I can create the new companyid field and the contactid field by
autofilling the fields after the data is transferred to the new
database. My problem is I have to change the companyIDlookup value in
the "new contacts table" to match the new companyID value in the "new
companies table" based on the companyid value in the original table.
Basically I am trying to figure out a way to use an Excel formula to
match the CompanyID value in the new contacts table to the CompanyID
value in the new companies table based on the values in the original
companies and contacts tables.
Is this possible? I'm sure it is just not very good with Excel
formulas. Any assistance is greatly appreciated.
Robert