Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear Clipboard Contents Programmatically

Status
Not open for further replies.

bsedabres

MIS
Mar 5, 2003
6
US
Hi All. Just wondered if anyone knows how to clear the clipboard contents in Access 2000 through VBA. One of my forms is generating an error on close asking the user if they want to save the "large amount of data" on the clipboard. I thought there would be a
docmd.runcommand accmdclearclipboard option, but no luck.

Any help is be appreciated.

bas
 
I'd recommend you "copy over" the clipboard by pasting new text there (i.e. "hi mom" or an empty string). I believe there are two methods to do this:

RunCommand acCmdCopy -- copies current field to the clipboard.


Clipboard API calls:

--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
Bracket these around your DoCmd statement.

DoCmd.SetWarnings False
Your DoCmd statement
DoCmd.SetWarnings True

Good Luck!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top