I
Ian Baker
I have 2 tables one for a child and one for parents of that child.
Table Child:
ChildID, ChildName, ContactType, ContactID etc....
Table Contact (the parents table)
ContactID, ContactName, Address, City etc....
I have created a query qryChild of:
SELECT Child.ChildID, Child.ChildName, Child.ContactType, Child.ContactID,
Contact.ContactID AS MainContactID, Contact.ContactName, Contact.Address
FROM Child LEFT JOIN Contact ON Child.ContactID = Contact.ContactID
WITH OWNERACCESS OPTION;
I have a form called Child bound to qryChild where I want to view/enter
children and in a combo box for ContactName either:
1. Enter a new parent name therefor causing a new record in the Contact
table and as I complete the address etc fields this info is going into the
new contact record
2. Or select an existing parent in the ContactName combo box which would
therefor display their details in the address etc fields
The form has to also bind the Child.ContactID to Contact.ContactID
I am having all sorts of trouble trying to do this so your advice on how to
do it is greatly appreciated.
Table Child:
ChildID, ChildName, ContactType, ContactID etc....
Table Contact (the parents table)
ContactID, ContactName, Address, City etc....
I have created a query qryChild of:
SELECT Child.ChildID, Child.ChildName, Child.ContactType, Child.ContactID,
Contact.ContactID AS MainContactID, Contact.ContactName, Contact.Address
FROM Child LEFT JOIN Contact ON Child.ContactID = Contact.ContactID
WITH OWNERACCESS OPTION;
I have a form called Child bound to qryChild where I want to view/enter
children and in a combo box for ContactName either:
1. Enter a new parent name therefor causing a new record in the Contact
table and as I complete the address etc fields this info is going into the
new contact record
2. Or select an existing parent in the ContactName combo box which would
therefor display their details in the address etc fields
The form has to also bind the Child.ContactID to Contact.ContactID
I am having all sorts of trouble trying to do this so your advice on how to
do it is greatly appreciated.