B
Ben Bamford
Damon,
Thanks for the response. The problem may lie in my assumption that if you
use id fields (such as "EmpID" in both parent and child tables), then when
you enter a value in "EmpID" in the parent table, you should expect to see
that same value in the "EmpID" field in the related table. That is not the
case and it seems as though it should be.
When I create a form based on "tblEmployee" with a subform based on
"tblEmployeeInfo", linked on the common "EmpID" field, then this does occur.
When I navigate to each record in the main form, I see AT MINIMUM the
corresponding "EmpID" value in the subform, even if I have not filled in
other field values for that record.
The corresponding "EmpID" values do not appear for each record when both
tables are opened and examined. This is the source of my frustration.
The "EmpID" field is a "text" datatype.
If I skip a couple of records when I open "tblEmployee" and expand to view
the subdatasheet of record 5 and enter a value for the "Salary" field (in
"tblEmployeeInfo"), close both tables, then reopen both, this is what I see:
I see that in "tblEmployeeInfo", three records with values for the "Salary"
field. There are "EmpID" values of 0001, 0002 and 0005 in that table, ie
there are no "placeholder values" of 0003 and 0004 showing (but those are
present in the "tblEmployees"). It seems to me that, logically, there should
be the same set of "EmpID" values in both tables, regardless of whether or
not additoinal fields for those IDs are completed.
What's the problem with my logic? Thanks.
Thanks for the response. The problem may lie in my assumption that if you
use id fields (such as "EmpID" in both parent and child tables), then when
you enter a value in "EmpID" in the parent table, you should expect to see
that same value in the "EmpID" field in the related table. That is not the
case and it seems as though it should be.
When I create a form based on "tblEmployee" with a subform based on
"tblEmployeeInfo", linked on the common "EmpID" field, then this does occur.
When I navigate to each record in the main form, I see AT MINIMUM the
corresponding "EmpID" value in the subform, even if I have not filled in
other field values for that record.
The corresponding "EmpID" values do not appear for each record when both
tables are opened and examined. This is the source of my frustration.
The "EmpID" field is a "text" datatype.
If I skip a couple of records when I open "tblEmployee" and expand to view
the subdatasheet of record 5 and enter a value for the "Salary" field (in
"tblEmployeeInfo"), close both tables, then reopen both, this is what I see:
I see that in "tblEmployeeInfo", three records with values for the "Salary"
field. There are "EmpID" values of 0001, 0002 and 0005 in that table, ie
there are no "placeholder values" of 0003 and 0004 showing (but those are
present in the "tblEmployees"). It seems to me that, logically, there should
be the same set of "EmpID" values in both tables, regardless of whether or
not additoinal fields for those IDs are completed.
What's the problem with my logic? Thanks.