Hello,
I am working on a database with a form and subforms that reside on a tab control. I have been designing this database off and on for some time now, and so far each of the tests I have conducted with it have been successful.
The other day it occurred to me that there could be a problem with my link child/master fields. I have designated the control named "ID" to be used as the linking field (which is also set up as the field that creates a one-to-one relationship between each table that is the record source for each form and subform). ID is the name of the control in each table (since the ID will be shared in each table for an individual record, I gave it the same name in each table) and is the primary key in my main form's table.
Is the link child/master fields property supposed to be set by the name of the control or by the name of the field on the form (e.g., Text1)? Does it matter?
According to Access's help:
"You can use the name of a control (including the name of a calculated control) to set the LinkMasterFields property, but you can't use the name of a control to set the LinkChildFields property."
If this is the case, then why has my link worked thus far since I've used a control name for both the child and the master field??? I just want to be as certain as I can that I've worked any bugs out of this database before it goes live. I appreciate any help/advice you can offer on this issue.
Cheers,
E.
I am working on a database with a form and subforms that reside on a tab control. I have been designing this database off and on for some time now, and so far each of the tests I have conducted with it have been successful.
The other day it occurred to me that there could be a problem with my link child/master fields. I have designated the control named "ID" to be used as the linking field (which is also set up as the field that creates a one-to-one relationship between each table that is the record source for each form and subform). ID is the name of the control in each table (since the ID will be shared in each table for an individual record, I gave it the same name in each table) and is the primary key in my main form's table.
Is the link child/master fields property supposed to be set by the name of the control or by the name of the field on the form (e.g., Text1)? Does it matter?
According to Access's help:
"You can use the name of a control (including the name of a calculated control) to set the LinkMasterFields property, but you can't use the name of a control to set the LinkChildFields property."
If this is the case, then why has my link worked thus far since I've used a control name for both the child and the master field??? I just want to be as certain as I can that I've worked any bugs out of this database before it goes live. I appreciate any help/advice you can offer on this issue.
Cheers,
E.