J
John Whyte
I have just created a new database in Access2002 with no
data on it. It has
4 Tables. These are shown with there use in forms in
parenthesis:-
1. tblPages, "Parent"
2. tblLayoutTasks, "Child"
3. tblResources, "Grandchild"
4. tblLayoutResources is junction between 2. and 3. and
has its primary key as combined primary key of 2 and 3.
There is a problem when using the form based on 1 (parent)
with 2 as subform (child) and 3 as a subform of 2
(grandchild).
When the first data was entered, 1 and 2 accepted entries
but the entry to 3 gave the error "field cannot be
updated". [The help system says the record is locked by
another user (there is no other user) or the locked
property of the control is set to Yes(it's set to 'No')].
On checking the junction table, 4, I find that the
primary key combined values (data type = number) are
still zero. If I change these to equal the newly created
ID's in tables 2 and 3, the form displays the correct
information.
How do I get the Junction table to update automatically
with the same values of ID's from 2 and 3?
John
data on it. It has
4 Tables. These are shown with there use in forms in
parenthesis:-
1. tblPages, "Parent"
2. tblLayoutTasks, "Child"
3. tblResources, "Grandchild"
4. tblLayoutResources is junction between 2. and 3. and
has its primary key as combined primary key of 2 and 3.
There is a problem when using the form based on 1 (parent)
with 2 as subform (child) and 3 as a subform of 2
(grandchild).
When the first data was entered, 1 and 2 accepted entries
but the entry to 3 gave the error "field cannot be
updated". [The help system says the record is locked by
another user (there is no other user) or the locked
property of the control is set to Yes(it's set to 'No')].
On checking the junction table, 4, I find that the
primary key combined values (data type = number) are
still zero. If I change these to equal the newly created
ID's in tables 2 and 3, the form displays the correct
information.
How do I get the Junction table to update automatically
with the same values of ID's from 2 and 3?
John