N
Neal
I've tried various things but can't do it.
Two tables, Jobs and Items. One job, many items. Keys are JobID, ItemID,
link JobID. Main form name frmJobsMain, linked subform name frmItemsSub.
One job gets issued to a contractor, and there are many items shown on the
main sub form. At a later stage, we need to get the contractor to do
exactly the same job again, so we want a button on the main sub form that
'duplicates' the job.
I've resorted to trying to write some code triggered by a button on
frmJobsMain to do it, but it's beyond me. I started thinking about running
a 'MakeTable' query to select and hold the Items first, then making a new
record in the main table, somehow changing the JobID in the temp table to
the ID of the new job and adding the records back into the Item table.
Am I barking up the wrong tree? How should I do this?
Thanks, Neal
Two tables, Jobs and Items. One job, many items. Keys are JobID, ItemID,
link JobID. Main form name frmJobsMain, linked subform name frmItemsSub.
One job gets issued to a contractor, and there are many items shown on the
main sub form. At a later stage, we need to get the contractor to do
exactly the same job again, so we want a button on the main sub form that
'duplicates' the job.
I've resorted to trying to write some code triggered by a button on
frmJobsMain to do it, but it's beyond me. I started thinking about running
a 'MakeTable' query to select and hold the Items first, then making a new
record in the main table, somehow changing the JobID in the temp table to
the ID of the new job and adding the records back into the Item table.
Am I barking up the wrong tree? How should I do this?
Thanks, Neal