juliejoanne
Technical User
The main part of my membership/registration database deals with contacts in three tables:
Contacts: CID(pk); companyID; addressID; firstName; lastName; etc
Company: companyID(pk); companyName
Address: addressID(pk); Address1; Address2; City; State; etc
The db has people(same company "Individual", unique addresses) and companies (same address, unique contacts). I would like to have a company "Individual" that can refer to many people, and has several different addresses. When I use a combo box on the form for data entry it lists the company names, however if I enter 2 people as "individuals" the autonumber kicks in from the company table and repeats the CompanyName so there are dublicate entries in the table. Is there a way to enter a new entry and pull ONE companyID that already exists? I thought the limit to list function would handle, but it does not work. Also, to enter a new company at the form level, would I have to utilize a subform or is there code that can be worked into the form?
Perhaps the table structure is incorrect or the link betweens tables is off. I have struggled to get this inherited mess normalized.
Thanks for your consideration.
JE
Contacts: CID(pk); companyID; addressID; firstName; lastName; etc
Company: companyID(pk); companyName
Address: addressID(pk); Address1; Address2; City; State; etc
The db has people(same company "Individual", unique addresses) and companies (same address, unique contacts). I would like to have a company "Individual" that can refer to many people, and has several different addresses. When I use a combo box on the form for data entry it lists the company names, however if I enter 2 people as "individuals" the autonumber kicks in from the company table and repeats the CompanyName so there are dublicate entries in the table. Is there a way to enter a new entry and pull ONE companyID that already exists? I thought the limit to list function would handle, but it does not work. Also, to enter a new company at the form level, would I have to utilize a subform or is there code that can be worked into the form?
Perhaps the table structure is incorrect or the link betweens tables is off. I have struggled to get this inherited mess normalized.
Thanks for your consideration.
JE