|
'复制
Private Sub Text2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = acLeftButton And Len(Me.Text2.Text) > 0 Then
Me.Text2.SelStart = 0
Me.Text2.SelLength = Len(Me.Text2.Text)
DoCmd.RunCommand acCmdCopy
End If
End Sub
'粘贴
Private Sub Text4_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = acRightButton Then
Me.Text4.SelStart = 0
Me.Text4.SelLength = Len(Me.Text4.Text)
DoCmd.RunCommand acCmdPaste
End If
End Sub
|
|