M
mikeyb
I have a database which contains names and addresses of companies and
contacts within the company.
I have a table tblCompany which contains the name and address of the company.
tblCompany
CompanyID(PK)
CompanyName
CompanyAddress1
CompanyAddress2
CompanyPostCode
I have another table tblContact which contains the addresses of contacts
tblContact
ContactID(PK)
ContactName
ContactAddress1
ContactAddress2
ContactPostCode
I have a joining table tblJoin as there are some companies with one or more
contacts and there may be one or more contacts representing one or more
companies - consequently I have a many to many set.
tblJoin
CompanyID(FK)
ContactID(FK)
DateAdded
1 company can have many contacts and one contact can have more than one
company
Sometimes the company address can be the same as the contact address (eg
someone working at home).
I have a form representing the Company and a subform where I can enter
contact details. I want to add a button which will copy the address details
from the Company to the Contacts.
I know this goes against all database standard practice, but I have this
unusual situation where the same person may represent more than one company
and vice versa
Have tussled with this again and cannot solve it
Thanks
contacts within the company.
I have a table tblCompany which contains the name and address of the company.
tblCompany
CompanyID(PK)
CompanyName
CompanyAddress1
CompanyAddress2
CompanyPostCode
I have another table tblContact which contains the addresses of contacts
tblContact
ContactID(PK)
ContactName
ContactAddress1
ContactAddress2
ContactPostCode
I have a joining table tblJoin as there are some companies with one or more
contacts and there may be one or more contacts representing one or more
companies - consequently I have a many to many set.
tblJoin
CompanyID(FK)
ContactID(FK)
DateAdded
1 company can have many contacts and one contact can have more than one
company
Sometimes the company address can be the same as the contact address (eg
someone working at home).
I have a form representing the Company and a subform where I can enter
contact details. I want to add a button which will copy the address details
from the Company to the Contacts.
I know this goes against all database standard practice, but I have this
unusual situation where the same person may represent more than one company
and vice versa
Have tussled with this again and cannot solve it
Thanks