How to simply check to see if clipboard is empty

J

justme

I have played around with Terry Kreft's API clipboard function.

I set it up so that on load of the form, if the clipboard = 0, it sets some
text in the clipboard automatically. But if I start in word, copy some text,
then load the Access form, the function still sets the text, presumably
because it is using a "new" clipboard which is always empty at load. It seems
to use a different area of memory from normal cut/paste clipboard. Is this
correct?

I am looking for a way to check the "normal" clipboard, as used by all
applications, to see if it is empty. Then, and only then, if it is empty,
then to put something on the clipboard. Is this possible?

Thank you!
 
B

Bob Hairgrove

I have played around with Terry Kreft's API clipboard function.

I set it up so that on load of the form, if the clipboard = 0, it setssome
text in the clipboard automatically. But if I start in word, copy some text,
then load the Access form, the function still sets the text, presumably
because it is using a "new" clipboard which is always empty at load. It seems
to use a different area of memory from normal cut/paste clipboard. Is this
correct?

I am looking for a way to check the "normal" clipboard, as used by all
applications, to see if it is empty. Then, and only then, if it is empty,
then to put something on the clipboard. Is this possible?

Thank you!

Do you have a link to Terry Kreft's API function? Also, how is the
Access form loaded? Do you start MS-Access after Word has copied the
text to the clipboard, or is it already running?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top