Code Examples For RunCommand Constants

Duplicate Control

acCmdDuplicate

This simple routine can be used to add the Duplicate command to the Shortcut Menu for a control on a Form in Design View. Add a new menu item to the Form, Design View Control short menu and set it's action to =mnuDuplicate().

'***************** Code Start *******************
' Code by Terry Wickenden

Function mnuDuplicate()

  DoCmd.RunCommand acCmdDuplicate

End Function

'****************** Code End ********************