473,411 Members | 2,030 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,411 software developers and data experts.

How to avoid clip board message when duplicating record

I am creatng a form and using wizard to automate some things.
I want the user to be able to Duplicate a record so I set this up behind a
command button on the form. THe wizard did all the work.

But I guess since it is using docmd commands which is basically a copy and
paste from menu pull downs, I am getting a message asking me if I want to
save or remove the stuff in the clipboard because it is a lot of data etc
etc...

Will this show up on the users machine when I send the mde?

Thanks again
Danny
Nov 13 '05 #1
2 2193
You can clear the ClipBoard in the Form's Unload event. The code in the
sample below is placed behind a CommandButton but just copy it over to
your Form's Unload event.

' Place these API declarations at the top of your Form in the General
Declarations area.
Private Declare Function OpenClipboard Lib "user32" (ByVal hWnd As Long)
As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long
Private Sub cmdClip_Click()
On Error GoTo Err_cmdClip_Click

' Open, Empty and Close Clipboard
' No Clipboard API error handling
Call OpenClipboard(0&)
EmptyClipboard
CloseClipboard
MsgBox "ClipBoard Cleared!"
Exit_cmdClip_Click:
Exit Sub

Err_cmdClip_Click:
MsgBox Err.Description
Resume Exit_cmdClip_Click

End Sub
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Danny" <da********@hotmail.com> wrote in message
news:Je****************@news4.srv.hcvlny.cv.net...
I am creatng a form and using wizard to automate some things.
I want the user to be able to Duplicate a record so I set this up behind a command button on the form. THe wizard did all the work.

But I guess since it is using docmd commands which is basically a copy and paste from menu pull downs, I am getting a message asking me if I want to save or remove the stuff in the clipboard because it is a lot of data etc etc...

Will this show up on the users machine when I send the mde?

Thanks again
Danny


Nov 13 '05 #2
Thanks a lot.
I will try this

"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:hE*********************@ursa-nb00s0.nbnet.nb.ca...
You can clear the ClipBoard in the Form's Unload event. The code in the
sample below is placed behind a CommandButton but just copy it over to
your Form's Unload event.

' Place these API declarations at the top of your Form in the General
Declarations area.
Private Declare Function OpenClipboard Lib "user32" (ByVal hWnd As Long)
As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long
Private Sub cmdClip_Click()
On Error GoTo Err_cmdClip_Click

' Open, Empty and Close Clipboard
' No Clipboard API error handling
Call OpenClipboard(0&)
EmptyClipboard
CloseClipboard
MsgBox "ClipBoard Cleared!"
Exit_cmdClip_Click:
Exit Sub

Err_cmdClip_Click:
MsgBox Err.Description
Resume Exit_cmdClip_Click

End Sub
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Danny" <da********@hotmail.com> wrote in message
news:Je****************@news4.srv.hcvlny.cv.net...
I am creatng a form and using wizard to automate some things.
I want the user to be able to Duplicate a record so I set this up

behind a
command button on the form. THe wizard did all the work.

But I guess since it is using docmd commands which is basically a copy

and
paste from menu pull downs, I am getting a message asking me if I

want to
save or remove the stuff in the clipboard because it is a lot of data

etc
etc...

Will this show up on the users machine when I send the mde?

Thanks again
Danny

Nov 13 '05 #3

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

Similar topics

15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
6
by: queisser | last post by:
Hi all, I'm writing a C# app that uses copy/paste to put graphics in a window. My copy/paste logic first looks for Metafile, then for bitmap. Here's the problem: when I copy and paste a WMF...
1
by: Mamatha | last post by:
Hi I have some items in listview. I want to copy the selected items from listview using the clip board mechanism in VB.NET. I used this code but it was not copied. For Each lsvrow As...
2
by: wannabeateacher | last post by:
How can I get a adtabase to recognise that a piece of data has already been "used" in connection with another piece of data in another field. My database is focussing on timetabling and I cannot...
0
by: atif283 | last post by:
Hi I m working on clip board application in vb.net and i need to paste file on window's desktop how i will do it can any one help me in this regard? Thankz in advance
1
dmjpro
by: dmjpro | last post by:
could anyone tell me how can i access the clip board using JS???? plz help. kind regards. dmjpro.
3
by: atif283 | last post by:
Hi I m worki on clip board m trying to copy RTF data(Text+Image) both txt and image on clip board its only pasting text On Excel not the image can any one help me in this regard I m using your...
4
by: SirCodesALot | last post by:
hi all, I am trying to copy the contents of a div to the clip board the same way that Microsoft copies it when you select the contents with the mouse and select copy. However, something is not...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.