Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i copy a recordset?

Status
Not open for further replies.

chevyv8

MIS
Apr 19, 2004
14
GB
Please help, I have some complete recordsets in a table that I want to copy into another table, once I have found the recordset how can I copy it? Is there a command like:

RecordSet (OP_rec) = RecordSet (IP_rec)
OP_rec.Update

If so could I do a batch of recordsets without a loop as well?

Any answers most welcome
 
Hi

You could use some SQL like:

Set db = CurrentDB
db.Execute ("SELECT * INTO [tblNew] FROM [tblOld]")
db.TableDefs.Refresh

This would copy all the contents from one table to another.

Let us know how you get on!

NSS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top