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

Copy a record from Form

Status
Not open for further replies.

Buj123

Programmer
Jan 5, 2004
96
US
Hello,
I have form for inputting data in to the table. Sometimes they need to enter same data with little changes.
so the user want a copy button on the form which will copy the last record and pastes it so that they can make changes where ever necessary.
How to do that?
 
I got it. Use the Duplicate record of the command button wizard.
 
Look at the following:


Word of CAUTION not sure of all the fields you have or purpose, but you many not want to carry forward all the data from each field to a new record. You may accidently save the same record twice with identical information.


HTH

An investment in knowledge always pays the best dividends.
by Benjamin Franklin
Autonumber Description - FAQ702-5106
 
Thnk you for your response. Actually as i need to copy the whole record i have used the duplicate record, it worked out fine for me.
But the problem is when i do that its saving that OfficeClipBoard too, so then when i close the form its giving me a message saying "There is large amount of data in the clipboard and if you close this form it will be gone. Do u want to continue anyways?"

How to prevent this message from popping?
 
Try Docmd.SetWarning False on the form's close event. But no guarantees that it will apply to clipboard messages.

If it works, you will need to restore warnings on the form's open event. Docmd.SetWarnings True

Cheers,
Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top