justme said:
But what are the Open and close clipboard functions for?
Ah, ok. It thought your question was how to use these functions, not what
are they for. My apologies.
The functions are used to allow you to copy from "memory" (that means
variables in ms-access) to the standard windows clipboard.
This is a handy feature.
For example, we could place a button on a form that displays a persons
address fields. You could have a button called:
"copy address to clipboard"
When the user press the button, you would take all the data from the fields
to make up a complete address.
You then use the ClipBoard_SetText function to copy this data from your
form to the clipboard.
Then, the user could open up word, or any other application, and when they
go
edit->paste, the address would be pasted.
From the link you gave, the following text clearly explains the use here:
:
<quote>
Although the built in RunCommand method does have a constant which allows
you to copy data to clipboard, it's heavily dependent on controls on the
form. You must setFocus to the control and select the text first before you
can use RunCommand on the selection.
Here are a few functions which let you copy and paste data to/from
clipboard.
</quote>
So, the text in the link you gave it quite clear. These are functions simply
copy data from "memory" (variables) to the windows standard clipboard, or
from the clipboard
to memory variblaes in ms-access.