duplicate record

maxmangion

AWF VIP
Local time
Today, 07:25
Joined
Feb 26, 2003
Messages
2,804
when creating a button using the wizard to duplicate a record, it creates a 3 line code using the DoCmd.MenuItem. Is there any code which supersedes this, since most of the DoCmd.MenuItem have become obsolete.

Thanks
 
Code:
    DoCmd.RunCommand acCmdSelectRecord
    DoCmd.RunCommand acCmdCopy
    DoCmd.GoToRecord , , acNewRec
    DoCmd.RunCommand acCmdPasteAppend

:confused:
 
thx ...............
 

Users who are viewing this thread

Back
Top Bottom