Access Form Question

115 pts.
Tags:
Access forms
Microsoft Access
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!

Answer Wiki

Thanks. We'll let you know when a new response is added.

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).

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Randym
    You need to set the "Link Child Fields" and "Link Parent Fields" properties of the subform.
    1,740 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following