Subforms & relationships

M

Mike

Hi. I am relatively new to subforms ...

I would like to create a form that has two subforms. I
understand how to create this using the Form Wizard, but I
am not sure how to specify the table relationships.

For instance, with the main table, I have the auto-
generated ID. How do I tie this to the records in the two
other tables?

Any suggestions will be appreciated!

Thanks,
Mike.
 
D

Dave Ruhl

The tables used in the subforms should have a field
(foreign key) that links them to the table used on your
main form. The subforms would then link to the main form
using that key field.

For example, say your main table, displayed on the main
form, is Customers (with a key field CustID). Your two
subforms could show Invoices (with a foreign key field
CustID) and Orders (also with a foreign key field CustID).
 

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

Similar Threads


Top