Shortcut for "Paste Append" (1 Viewer)

Andrew Thorpe

Registered User.
Local time
Today, 09:41
Joined
Apr 18, 2009
Messages
59
I often use Ctrl+V for Paste. Is there a shortcut for PasteAppend?
 

Andrew Thorpe

Registered User.
Local time
Today, 09:41
Joined
Apr 18, 2009
Messages
59
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.
 

missinglinq

AWF VIP
Local time
Today, 04:41
Joined
Jun 20, 2003
Messages
6,423
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)>
 

Andrew Thorpe

Registered User.
Local time
Today, 09:41
Joined
Apr 18, 2009
Messages
59
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

Top Bottom