How do I auto copy on "Got Focus"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

whenever I "get Focus" on a certain field, I want the computer to automaticly
copy the text in that field onto the clipboard. Can I run a macro that will
call the key-strokes CTRL+S or is there a function in the VB that will do the
same thing?
 
Hi Arend,

Perhaps the simplest way is to use DoCmd.RunCommand acCopy,
which pastes the clipboard contents into the active control.

Another is to set a reference to the MS Forms 2.0 library and
use the DataObject object, which lets you move text to and from
the clipboard.

On Sun, 21 Nov 2004 08:49:01 -0800, Arend the Diver <Arend the
 
Hi John,

This sounds like exactly what I need, but....

How do I load the MS Forms 2.0 library, and set a reference?

Thanks,

David
 
Back
Top