Article ID: 94162 - Last Review: May 9, 2003 - Revision: 2.0 ACC: How to Retrieve Information from the Clipboard (1.x/2.0)This article was previously published under Q94162 On This PageSUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
There is no command in Microsoft Access to retrieve information from the Clipboard. To retrieve information from the Clipboard, you need to define an Access Basic function that calls several Windows API functions. This article defines a function that retrieves text from the Clipboard. MORE INFORMATION
Add the code defined below to an Access Basic module. Make sure that the
declare functions are all listed on one line and that the MsgBox procedure
is also defined on one line. Because you may have some of the Windows API
functions defined in an underlying library, some of them might not be
needed. If this is the case, remove or comment the declarations from your
code.
To call the function, you can make a string assignment to the returned value, such as: ReturnString$ = ClipBoard_GetData () Sample CodeNOTE: In the following sample code, an underscore (_) is used as a line- continuation character. Remove the underscore when re-creating this code in Access Basic.REFERENCES
For an example of how to retrieve information from the Clipboard in
Microsoft Access 95 and 97, please see the following article in the
Microsoft Knowledge Base:
138910 (http://support.microsoft.com/kb/138910/EN-US/ ) How to Retrieve Information from the Clipboard (95/97) APPLIES TO
| Article Translations
|

Back to the top
