115 pts.
 Access Form Question
Hi, I've studied Access for a couple years and can't seem to wrap my brain around the following: if a form and subform that has fields from multiple joined tables, how do you link the form with the subform so that the subform references the right record? I know the primary key of the parent table needs to line up with the foreign key in the child table, so I've been putting the foreign key on the subform and just making it invisible. But I've seen forms where the form and subform are linked seemingly without the foreign key field added. If anyone could tell me how to do that, I'd be really appreciative. Thank you!

Software/Hardware used:
ASKED: March 17, 2009  6:46 PM
UPDATED: March 19, 2009  7:06 PM

Answer Wiki:
Foreign key does not matter. You mix the integrity issue with joining of two tables. You can link ANY column of one table (record source of the main form) with ANY column of compatible data type of another table (record source of subform).
Last Wiki Answer Submitted:  March 18, 2009  9:31 pm  by  msi77   1,610 pts.
All Answer Wiki Contributors:  msi77   1,610 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You need to set the “Link Child Fields” and “Link Parent Fields” properties of the subform.

 1,740 pts.