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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you clear the clipboard from VB Code?

Status
Not open for further replies.

kramerica

Technical User
Jun 19, 2001
74
US
I have a form in Access 97 that copies the "current Record" and pastes it as a new record using the "duplicate Record" feature built into the wizard. When I close the form I get a warning that say's 'You have copied a large amount of data onto the clipboard.. ' How do I clear the clipboard from Visual Basic code after I duplicate my record in order to avoid this annoying warning!?
 
I have the Access 97 Developer's Handbook by Litwin, Getz and Gilbert (SYBEX). In chapter 18 they briefly mention this as an API call. The code on the CD uses:

Private Declare Function adh_apiEmptyClipboard _
Lib "user32" Alias "EmptyClipboard" () As Integer

Hope that helps... Terry M. Hoey
 
I am not sure about Access 97 but in Access 2000 you can turn a lot of confirming messages off in Tools->Options. Maybe a good place to start looking.

Sameal
 
I wouldn't turn off the messages just for this, you might have another error message that you miss. You either need to find the way to clear the clipboard or find the specific error message and handle it. Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top