COPY a record to an new record

Liv Manto

Registered User.
Local time
Today, 18:43
Joined
Apr 26, 2001
Messages
266
I have a button for a new record

dim x as string

me.name = x

docmd addnew

x=me.name

I however have 19 data to copy, different types.

Anything else easier and shorter?

I have to do it in 20 forms, different data.
 
Dear Jack Cowley.

from the current record of the same form. See the user is lazy to enter the data if it's the same as the last one. So I'm giving her this option.

SO from Current record - me.name
Open new record
me.name is now on another record
 
Ouch. I was trying to avoid cloning a recordset.

I was thinking I could do a shortcut

x= me.recordset
docmd addnew

me.recordset = x

But of course it was giving me an error. I guess there is no other way then.

Thanks Jack.
 
No other way that I am aware of. The more work you do on your side of the database will just make it that much easier on the users side. Unfortunately they will probably not appreciate what you have done but that is really a compliment to you and your programming skills....
 
you can run an append query having criteria of the current record of the form when you clicked the duplicate button, then go to that new appended record. but make sure you have good control of the primary fields.
 

Users who are viewing this thread

Back
Top Bottom