473,394 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to empty the clipboard

Dear reader,

By closing a form after deleting one record, I received a warning telling
me:

"You copied a large amount of data onto the clipboard."

I delete the record with the "cut" command and I have not the intention to
paste the cut items.

I do not know how the data is copied to the clipboard but to solve the
problem I am looking for the VBA instruction in the close event of the form
to empty the clipboard.

Tanks for any help.

Kind regard,

Simon
Nov 19 '06 #1
1 3529
MLH
You may circumvent the problem you described by deleting
selected records using the delete key or something like this
in code:

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

There's also the delete method in DAO recordsets. But from what you're
describing, that's not likely to pertain to your situation.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mon, 20 Nov 2006 00:09:22 +0100, "Simon" <Sv********@Versatel.nl>
wrote:
>Dear reader,

By closing a form after deleting one record, I received a warning telling
me:

"You copied a large amount of data onto the clipboard."

I delete the record with the "cut" command and I have not the intention to
paste the cut items.

I do not know how the data is copied to the clipboard but to solve the
problem I am looking for the VBA instruction in the close event of the form
to empty the clipboard.

Tanks for any help.

Kind regard,

Simon
Nov 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
5
by: Tappy Tibbons | last post by:
I have a class I am serializing, and need the resultant XML to skip/omit classes that are not initialized, or their member variables have not been set. Is this possible? Say for the following...
2
by: emr | last post by:
Hi, i want to empty clipboard but i don't want to use this one Clipboard.SetDataObject("",true); It must be really empty when i do this...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
2
by: john | last post by:
In a button I have this code: Testfield.SetFocus DoCmd.RunCommand acCmdPaste When the clipboard is empty this gives an error saying that this action is not available at the moment. I'd like...
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
0
by: Academia | last post by:
I ran Dim Strs As String() = Nothing ....fill Strs with file paths DataO.SetData(DataFormats.FileDrop, True, Strs) Clipboard.SetDataObject(DataO) When I tried to paste into Wordpad I got...
0
by: Andrew Morton | last post by:
I'm trying to use Clipboard.GetFileDropList to drag-and-drop a list of filenames from an Explorer window into a TextBox, but the only way I can get it to work is select the items in Explorer, press...
20
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.