S
Slez via AccessMonster.com
I am about to start writing code for a command button that will enable users
to copy a recordset, but need a little guidance.
What I'm looking to copy is all related records WHERE ProjectID and BidNumber
are specified in controls on a form, to another recordset where a different
BidNumber is selected. For example: Project ID = 222 and BidNumber = 3, and
I want all related records of BidNumber 3 to be pasted into BidNumber 7 (to
be determined by user).
I'm confident that I'll be able to write the proper code for the SELECT, FROM,
& WHERE phrases, but I have 2 main questions:
1. The code I have experience with in an import application uses the phrase
"INSERT INTO". Do I need to use "PASTE INTO" or something similar for
copying recordsets within the same database?
2. How do I reference the destination record within the code? In the
example above, the new BidNumber would be 7. One other side note to this.
My intent is to be able to add records, not overwrite any existing records
affiliated with, in this case, BidNumber 7.
I appreciate any feedback!
Slez
to copy a recordset, but need a little guidance.
What I'm looking to copy is all related records WHERE ProjectID and BidNumber
are specified in controls on a form, to another recordset where a different
BidNumber is selected. For example: Project ID = 222 and BidNumber = 3, and
I want all related records of BidNumber 3 to be pasted into BidNumber 7 (to
be determined by user).
I'm confident that I'll be able to write the proper code for the SELECT, FROM,
& WHERE phrases, but I have 2 main questions:
1. The code I have experience with in an import application uses the phrase
"INSERT INTO". Do I need to use "PASTE INTO" or something similar for
copying recordsets within the same database?
2. How do I reference the destination record within the code? In the
example above, the new BidNumber would be 7. One other side note to this.
My intent is to be able to add records, not overwrite any existing records
affiliated with, in this case, BidNumber 7.
I appreciate any feedback!
Slez