D
dBNovice
Hello all, I posted this question previously but did not get suffient
help. (perhaps my question was not worded properly; hopefully this is
better) If possible, I really need help on this one............
I have 3 tables and corresponding forms: tasks, subtasks and elements.
subtasks is a subform of tasks and elements is a subform of subtasks.
I have all 3 forms on a tab control with 3 pages. There is a one to
many relationship with task <-> subtasks; subtasks <-> elements and
task <-> elements. I am able to insert a task and 1 associated subtask
and 1 element. The problem exists when I try to put multiple subtasks
and elements associated with one task. Is there a way to navigate to a
new record and automatically set the value of either the taskID on the
Subtasks subform or subtaskID on the Elements subform to link the new
subform/element to the initial Task. (i.e. I want to input a task w/
TaskID: 111 and a subtask with TaskID: 111 and SubtaskID: 01 and
another subtask with TaskID: 111 and SubtaskID: 02; then an element
with TaskID: 111 and SubtaskID: 01 and ElementID: 1 and another element
with TaskID: 111 and SubtaskID: 01 and ElementID: 2.
On the Subtasks subform: Link Child Fields...TaskID and the Link Master
Fields...Tasks.TaskID
On the Elements subform: Link Child Fields...SubtaskID and the Link
Master Fields...Subtasks.SubtaskID
Note: not all tasks have multiple subtasks or elements; a task could
have 0 subtask but must have an element (element contains due date).
help. (perhaps my question was not worded properly; hopefully this is
better) If possible, I really need help on this one............
I have 3 tables and corresponding forms: tasks, subtasks and elements.
subtasks is a subform of tasks and elements is a subform of subtasks.
I have all 3 forms on a tab control with 3 pages. There is a one to
many relationship with task <-> subtasks; subtasks <-> elements and
task <-> elements. I am able to insert a task and 1 associated subtask
and 1 element. The problem exists when I try to put multiple subtasks
and elements associated with one task. Is there a way to navigate to a
new record and automatically set the value of either the taskID on the
Subtasks subform or subtaskID on the Elements subform to link the new
subform/element to the initial Task. (i.e. I want to input a task w/
TaskID: 111 and a subtask with TaskID: 111 and SubtaskID: 01 and
another subtask with TaskID: 111 and SubtaskID: 02; then an element
with TaskID: 111 and SubtaskID: 01 and ElementID: 1 and another element
with TaskID: 111 and SubtaskID: 01 and ElementID: 2.
On the Subtasks subform: Link Child Fields...TaskID and the Link Master
Fields...Tasks.TaskID
On the Elements subform: Link Child Fields...SubtaskID and the Link
Master Fields...Subtasks.SubtaskID
Note: not all tasks have multiple subtasks or elements; a task could
have 0 subtask but must have an element (element contains due date).