?
Solved

MS Access Parent Child form and Link fields.

Posted on 2016-09-14
7
Medium Priority
?
219 Views
Last Modified: 2016-09-14
My question is related to MS Access forms, particularly to Link fields between Parent and Child form – (bound forms).

Will change of value of link field on Parent form change automatically value of link field in child table ?
0
Comment
Question by:Taras
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 2

Accepted Solution

by:
Antonio Salva Ripoll earned 2000 total points
ID: 41798026
Hi.

If I understood your question, you are asking that if you change the value of the parent form link field, the subform link field changes.

In this case the answer is YES.

The link fields are used by the subform to filter the records from the recordsource, and sow only the record that matches the parent form link field.

And if you can add records to the subform, and you don't have any related record in the subform, you can add a new one, and the link field will be filled automatically whith the same value of the link field in the parent form.

In the other way, if you change the link field in the subform, then you are assigning that record data to other parent record. So, changing the value in the subform don't change the parent link field.

Best regards.

Antonio.
0
 
LVL 51

Expert Comment

by:Gustav Brock
ID: 41798183
The answer is no.

If you change the value of the master field(s), it just changes the filtering on the child field(s). That's the primary purpose of the master/child link fields.

If the tables of the forms are related and the master field is a primary key, the current value of this will be used as the default value of the child field (the foreign key) when entering new records in the subforms.

/gustav
0
 

Author Closing Comment

by:Taras
ID: 41798189
Thank you.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 

Author Comment

by:Taras
ID: 41798404
So what is proper answer? Yes or No??
0
 

Author Comment

by:Taras
ID: 41798410
If the Gustav answer is right it means that I allocate points to wrong person.
0
 
LVL 2

Expert Comment

by:Antonio Salva Ripoll
ID: 41798677
Hi @Taras.

Both answers, the Gustav one and mine are correct.

The link fields are the way to get a Master/Detail view. I said that the answer is yes because you change the recordsource filter.

And if you add a new detail record, the related field (the linked one) in the subform (and the subsequent table) is added automatically.

Best regards.

Antonio.
0
 
LVL 75
ID: 41798739
The correct answer is No ... Gustav's answer.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question