Aron said:
Thank you
The analyze tool did a wonderful job (I used No, I want to decide)
but I would like to know how to do it myself
"what's the query for that?"
It's easier to do than explain.
Work with a copy of your data base. (Ctrl-C, Ctrl V) and keep the data,
might as well do it twice.
Lets say you have name, address, company, company address, company phone,
etc.
Work with a copy.
Open in design view and remove all the fields that don't deal with the
company.
Create a copy of this with no data. Name it Companies. Add a company ID
field make it an auto number.
Make the company field indexed, no duplicates in companies.
Append the copy to Companies.
Now you have a Companies table and will need to review it to make sure that
CompanyA is always spelled the same. Delete duplicates.
Now go to another original copy and delete all the company fields except the
single company field. Add a company ID field.
Join the two on the *company* field.
Use that query to update the company ID in the first copy with
companies!companyID.
Delete the company field from the copy.
Do this for all other tables you want to split off.
You'll end up with two tables.
One will have name, address, companyID
the other CompanyID, company, company address, company phone