Re: Copy / Paste



With the current focus in the control whose contents you wish to copy to
the Clipboard:
DoCmd.RunCommand acCmdCopy


With the current focus in the control whose contents you wish to replace
with the contents of the Clipboard:
DoCmd.RunCommand acCmdPaste

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Steven" <Steven@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:49325185-582E-45F2-984F-CB74DFB49A4D@xxxxxxxxxxxxxxxx
> I want to copy the value from a textbox and paste it to another
object. I
> dont want to put the copy / paste on a menu bar or shortcut menu and
dont
> want to use Ctrl-C and Ctrl-V. What I want is to do it with a line of
code.
> I thought something like DoCmd.Object.Copy and DoCmd.Object.Paste but
I have
> looked for and tried everything. What is the code for this?
>
> Thank you for your help.
>
> Steven

.



Relevant Pages

  • Re: Copying A Value Of A String To The Clipboard
    ... For a control, you can go: ... DoCmd.RunCommand acCmdCopy ...
    (microsoft.public.access.modulesdaovba)
  • Re: playlistCollection.remove fails with invalid procedure call ..
    ... No web control present. ... If I dont ... >>I have a media player control in a vb6 form. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: People in Denial
    ... The only person you can control is ... Your family is grossly overweight and inactive and if they dont help ... Your mother needs better care. ... In tribute to the United States of America and the State ...
    (alt.support.diabetes)
  • Re: "Play All" brings up "Move Files" dialogue
    ... still finding my way round xp, but on my version the send-to command copies ... is there a registry modification to enable Send to Clipboard ... Control Copies a file ... Send To Powertoys ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: To Rack Jite
    ... back and forth pressured to choose a side, truth being i don't care to ... misfortune or lack of occational self control to have a good laugh then ... Juba I truly hope I haven't taken your compliment out of text, ... About 98% here know whats going on and either dont want to ...
    (alt.support.chronic-pain)