Three table data entry form

J

jennifer.quack

Hello,

I have created three tables: a Person table, a Guardian table, and a
PersonGuardian table. The PersonGuardian table is made up of just 2
fields - a foreign key to a PersonId and a foreign key to a
GuardianId. (If a person is over 18, the "Self" record would be the
Guardian; several children from the same family may have the same
guardian, etc - that is why a seperate table with just the 2 fields in
it. Trying to get to 3NF.)

Anyway - how do I create a form that allows entry of a new person with
a drop-down showing existing guardians from which a name may be
chosen, and then populates the two ids (the person id being just newly
generated) in the PersonGuardian table? I've been trying subforms but
not getting anywhere...and trying to stay away from code....

Thanks for any help,
Jen Q.
 
J

jennifer.quack

Never mind. I'm a moron! Up too late! Sorry for wasting anyone's time.
I just created a main form with the Person data, then ONE subform with
the PersonGuardian data (PersonId hidden, GuardianId as drop-down with
Guardian info in it). Ignored Guardian table altogether. Works fine.
Again, DUH. Wow. I'm going to bed....

Jen Q.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top