Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disable Save to Clipboard Message? (A2k (9.0.3821) SR-1)

    Disable Save to Clipboard Message?
    A2k (9.0.3821) SR-1

    I use a Duplicate Record button on a form and occasionally get the following message:

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Disable Save to Clipboard Message? (A2k (9.0.3821) SR-1)

    John,

    You can clear the clipboard using some Windows API calls.

    Put the following declarations in a standard module (they won't work if you place them in the form module):

    Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
    Public Declare Function EmptyClipboard Lib "user32" () As Long
    Public Declare Function CloseClipboard Lib "user32" () As Long

    In the OnClick code of the button on the form, add the following lines after the duplicate action:

    OpenClipboard hWndAccessApp
    EmptyClipboard
    CloseClipboard

    HTH,
    Hans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •