A
Ann in CA
Hello,
I have a dilemma. I am trying to clone a record, and the records that fall
underneath it. I understand how to copy a record, trap the autonumber, and
use the autonumber in adding the many parts of the one to many records that
fall underneath it. Where I get lost is trying to double that problem.
For example:
Copy record ID 135 from table A to record 246.
In table B, records 1, 3, and 5 with FK 135 were copied to records 2, 4, and
6 with FK 246.
In table C, I need records 91 and 92 with FK 1, 93 with FK 3, and 94 & 95
with FK 5 copied to have FKs of 2, 4, and 6, respectively.
I have tried thinking of this many ways but I am absolutely baffled...Any
inputs would be greatly appreciated =)
I have a dilemma. I am trying to clone a record, and the records that fall
underneath it. I understand how to copy a record, trap the autonumber, and
use the autonumber in adding the many parts of the one to many records that
fall underneath it. Where I get lost is trying to double that problem.
For example:
Copy record ID 135 from table A to record 246.
In table B, records 1, 3, and 5 with FK 135 were copied to records 2, 4, and
6 with FK 246.
In table C, I need records 91 and 92 with FK 1, 93 with FK 3, and 94 & 95
with FK 5 copied to have FKs of 2, 4, and 6, respectively.
I have tried thinking of this many ways but I am absolutely baffled...Any
inputs would be greatly appreciated =)