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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate / Copy / Clone Recordset (A2K)

Status
Not open for further replies.

Schof

Programmer
Nov 18, 2002
103
0
0
CA
Can someone remind me how to create a copy of a form's current record (or recordset) without maintaining the reference to the underlying table? Basically I want to copy the current record before deleting it so I can reference some of the field values afterwards in order to perform other operations.

I have tried the following but the recordsets become empty after deleting the current record.

dim rst as dao.recordset

set rst = Me.Recordset.Clone
set rst = Me.Form.RecordsetClone
set rst = Me.Form.Recordset.OpenRecordset
 
There has to be an easier way than that...
 
...and there is:

Set rst = Me.RecordsetClone


So close and yet, so far.
 
So I found out [sad]. Still looking...
 
But this seems to work...

Me.Recordset.OpenRecordset
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top