Hi,
I have made the following pet database and form but perhaps I don't understand how the combo box works.
table - owners
primary key - owner id
ownername
table - pets
primary key - pet id
petname
foreign key - owner id
and created a relationship 1 to many.
What I would like to do on the form is when I create a pet I want to select the owner from a combo box and behind the scenes insert the owner id in the foreign key field. I know how to do this now but it doesn't look very nice.
For it to work I need both the foreign key field and the combo box to be visible on the form. Why do I need the foreign key to be visible? The user of the form is not interested in the foreign key. Can I hide it in some way?
When I do not have the foreign key on the pet creation form I cannot create a pet it says the link to the parent table is missing.
Not sure the above is clear but I hope you can help.
David.