Surpisingly, it is not a straightforward process to copy text to the clipboard, however, it is quite doable. It requires a number of API calls to allocate some memory, lock it in place, then copy the string into the locked memory block. Then you open the clipboard, and copy the memory block by meomry handle into the clipboard and then clean up.
If you're (or anyone else) is serious about going down this road, I'll be glad to paste some code.
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
You might also try first to setfocus to the control (the Enter Key Behavior in Tools | Options should have the "Select entire field" option selected, I think), and use the runcommand method of the docmd object, with the following command/argument:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.