PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Copy to clipboard stopped working.

 
 
bravofoxtrotuk
Guest
Posts: n/a
 
      10th Jun 2009
My database has several forms which have buttons for copying items to the
clipboard, using something like this:

me.txtEmail.SetFocus
' copy email details to clipboard
DoCmd.RunCommand acCmdCopy

- which worked fine for some years until this morning when a Micro$oft
update took place, and it stopped working.

I've changed the code as below:

Me.EMail.SetFocus
' now select the text
Me.EMail.SelStart = 0
Me.EMail.SelLength = Len(Me.EMail)

' copy email details to clipboard
DoCmd.RunCommand acCmdCopy


- and it now works again!

A co-incidence perhaps, and a mystery to me, but may help others.

Bob

 
Reply With Quote
 
 
 
 
bravofoxtrotuk
Guest
Posts: n/a
 
      10th Jun 2009
I've done some more checking since this post, and find it WAS a coincidence.
(sorry MS). The problem was a result of a user asking that the database
behaviour be changed around the same time, by altering Tools | Options |
Keyboard and changing 'Behavior entering field' to 'Go to start of field'
from 'Select entire field'.

However, the fix remains the same, so if copy to clipboard isn't working for
you it may be because of this.

Bob

"bravofoxtrotuk" wrote:

> My database has several forms which have buttons for copying items to the
> clipboard, using something like this:
>
> me.txtEmail.SetFocus
> ' copy email details to clipboard
> DoCmd.RunCommand acCmdCopy
>
> - which worked fine for some years until this morning when a Micro$oft
> update took place, and it stopped working.
>
> I've changed the code as below:
>
> Me.EMail.SetFocus
> ' now select the text
> Me.EMail.SelStart = 0
> Me.EMail.SelLength = Len(Me.EMail)
>
> ' copy email details to clipboard
> DoCmd.RunCommand acCmdCopy
>
>
> - and it now works again!
>
> A co-incidence perhaps, and a mystery to me, but may help others.
>
> Bob
>

 
Reply With Quote
 
egerds
Guest
Posts: n/a
 
      10th Jun 2009
dated but still works
http://support.microsoft.com/kb/138909
and
http://support.microsoft.com/kb/138910
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clipboard has stopped working =?Utf-8?B?VG9t?= Windows XP General 0 1st Feb 2007 06:29 PM
Copy function stopped working ms Microsoft Windows 2000 1 1st Feb 2007 12:24 AM
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Microsoft Outlook 0 24th Aug 2006 02:44 PM
Clipboard Copy is not working Anand Ganesh Microsoft Windows 2000 Terminal Server Applications 0 13th Apr 2006 06:28 PM
Copy To Clipboard Not Working Wayne Wengert Microsoft ASP .NET 2 23rd Feb 2005 05:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:21 AM.