Placing data in the Clipboard (Access 97)

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

Just as the title suggests. I have a small database in Access that builds a
code from a long set of combo boxes and displays the code. The user then
copies the code into the software that he is using (not MS office).
I wanted to place the code into the clipboard so that the user simply runs
the form, goes to the target software and pastes.

I cannot find a command to copy data to the clipboard.

Can anyone help?

Thanks

Andy
 
Such a command does not exist, you need to use API calls to create one.
See Microsoft Knowledge Base Article - 210216

HTH
Sam
 
Not so! There is acCmdCopy or somesuch (I don't have Access here to check).
You just programatically copy the data to a textbox, then run the command in
question. This is an alternative to using the APIs.

HTH,
TC
 
Set focus to the control containing the data to be copied to the
ClipBoard:
docmd.RunCommand acCmdCopy

--

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