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

Create a "Record Copy" Button in a form

Status
Not open for further replies.

pspenn

IS-IT--Management
Dec 27, 2002
59
US
Hello all,
I am very rusty in VB and am looking to create a button on a form that makes a duplicate of the previous record and then positions the cursor on a specific field.

This is to be used for entering phone record data where only the phone number will change most of the time.

Any assistance would be appreciated.
Thanks,
Perry
 
Does anyone know if there is a command to copy a single record? I could figure it out from there...

Thanks,
Perry
 
there is a duplicate record option in the command button wizard which enters this code:

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append


PaulF
 
Fantastic! Thanks for the pointer... I guess I need to go look at the Wizards better.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top