Shortcut for "Paste Append"

Andrew Thorpe

Registered User.
Local time
Today, 23:37
Joined
Apr 18, 2009
Messages
59
I often use Ctrl+V for Paste. Is there a shortcut for PasteAppend?
 
Thank you for the link - there are certainly lots of useful shortcuts there. For PasteAppend, I have tried using a docmd action as described in another thread. It works fine, but a standard shortcut would have been even better. Thanks again.
 
You don't say how you're accomplishing this...with a Command Button, perhaps? You can create your own custom shortcut to do this, using an unassigned combination of keys. To use <Ctrl> + <Z>:

In the Properties Pane, for the Form itself, go to Events and (at the very bottom of the events) and set KeyPreview to YES. Then use this code

Code:
Private Sub Form_Keydown(KeyCode As Integer, Shift As Integer)

 If Shift = acCtrlMask And KeyCode = vbKeyZ Then
 
   DoCmd.RunCommand acCmdSelectRecord
   DoCmd.RunCommand acCmdCopy
   DoCmd.GoToRecord , , acNewRec
   DoCmd.RunCommand acCmdPasteAppend

 End If

End Sub

Linq ;0)>
 
Great stuff! That's working very well, thank you. I had previously put code into the On Double-Click event. Thanks again.
 

Users who are viewing this thread

Back
Top Bottom