Solved

MS Access Parent Child form and Link fields.

Posted on 2016-09-14
7
79 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
7 Comments
 
LVL 2

Accepted Solution

by:
Antonio Salva Ripoll earned 500 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 49

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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 7 36
Why can't I get rid of record selectors on my form? 9 30
Calculate Time acces 2010 12 31
MS Access from Delphi 31 36
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

825 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