473,799 Members | 3,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PasteAppend - Clipboard not responding

bwesenberg
17 New Member
I have created an Access Front End Database that many people in one of the departments use. Each user has their own copy of the Front End on their Computer. The Back End is on a SQL Server.

On one of the forms I created a Duplicate Record Button using the Wizard in Access. I have ONE user who has trouble using this button.

She uses it to copy records over and over and over. Then she changes just a few pieces of data as needed.

She often gets one of two error messages:
The Clipboard isn't responding, so Commercial Workflow(name of DB) can't paste the Clipboard's contents.

or

The command or action 'PasteAppend' isn't available now.

I have tried to recreate these errors on my computer with my front end. My Front End is the master they copy from. But I can not recreate the error.

I did check a few things on her front-end and my front end and found 1 setting different
On the Clipboard there is an options button and the first setting “Show Office Clipboard Automatically" on my front end is not checked and hers was checked. I changed that and the next day she was still having problems.

I have done a lot of searching on this and I just keep coming up at a dead end. Can anyone out there help me?
Oct 11 '07 #1
6 2424
nico5038
3,080 Recognized Expert Specialist
Hmm, can you post the code in the OnClick event of the copy button ?
I assume it works with the Docmd.MenuItem.
Better to switch to using the "Docmd.Runcomma nd" command as that's not depending on the available menu items.

Nic;o)
Oct 11 '07 #2
missinglinq
3,532 Recognized Expert Specialist
I wasn't even aware that the DoRun.MenuItem used the Clpboard for this! As Nico said, this is really a poor way to accomplish this job. Better to use


Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdSelectRecord
  2. DoCmd.RunCommand acCmdCopy
  3. DoCmd.RunCommand acCmdPasteAppend  
I've seen reports of this type of problem before, from time to time, and the general consensus is that the problem lies with available memory/memory not being released after the Copy & Paste is done. Significantly, every single report I've seen mentions that when this happens, the Clipboard exhibits the same behavior in other Office apps. Also usually reported is that rebooting eliminates the problem at least temporarily, which would seem to support a memory problem being the root cause.

I'm not sure if the above code will alleviate the problem, since I don't know exactly what mechanism Access uses to carry out the actions.

What I personally do to address the problem is use code like this, that copies the desired fields to variables, goes to a new record, then plugs the variables back into the correct fields.


Expand|Select|Wrap|Line Numbers
  1. 'Copy fields from original record to variables
  2.  
  3.   NewField1 = Me.YourField1
  4.  
  5.   NewField2 = Me.YourField2
  6.  
  7.     NewField3 = Me.YourField3   'Go to a new record
  8.  
  9.   DoCmd.GoToRecord , , acNewRec
  10.  
  11. 'Plug in old values into new record
  12. Me.YourField1.Value = NewField1
  13.  
  14.   Me.YourField2.Value = NewField2
  15.  
  16.   Me.YourField3.Value = NewField3
  17.  
  18.  
Linq ;0)>
Oct 11 '07 #3
bwesenberg
17 New Member
Sorry it took so long to get back to this. I have been so busy.
Here is my code for the duplicat record button.

Private Sub Command60_Click ()

On Error GoTo Err_Command60_C lick


DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append

Exit_Command60_ Click:
RaterID.SetFocu s
Exit Sub

Err_Command60_C lick:
MsgBox Err.Description
Resume Exit_Command60_ Click


End Sub
Oct 30 '07 #4
bwesenberg
17 New Member
I have changed the code to use:

DoCmd.RunComman d acCmdSelectReco rd
DoCmd.RunComman d acCmdCopy
DoCmd.RunComman d acCmdPasteAppen d

I am having the user test it for a few days and let me know.

Thanks for the thought you both put into this. If this does not work I will try the other code.
Oct 30 '07 #5
bwesenberg
17 New Member
The user contacted me already and it did not work.
I will try the other option.
Oct 30 '07 #6
bwesenberg
17 New Member
So far so good. I talked with the user today and she said that she has not had a problem.
Thanks so much for your help.
Oct 31 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

8
11479
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 database, and I need the data to be laid out in a tabular format, and set out in a specific way. At the current point in time, I am copy/pasting the raw text from the database into a table layout in InDesign. What I was thinking is that if I could...
5
4345
by: tabonni | last post by:
Hello All I am creating an ASP page. There are a list of filename and checkbox next to it. When user checked all the documents they want and click ADD TO CLIPBOARD button. All filepaths will be copied into clipboard and then they can right-click -> paste into MS Outlook as attachments. How can I use clipboardData.setData function to do that? I saw a lot of examples they are just copy and paste text.
7
11641
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 is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
7
20128
by: Dave Booker | last post by:
My Clipboard is getting into some very confused state where I can't even clear it. No applications can access the clipboard in this state, and if I run Clipboard.Clear() I get: System.Runtime.InteropServices.ExternalException: Requested Clipboard operation did not succeed. at System.Windows.Forms.Clipboard.ThorwIfFailed(Int32 hr) at System.Windows.Forms.Clipbard.SetDataObject(Object data, Boolean copy, Int 32 retryTimes, Int32...
0
1078
by: Tom | last post by:
What is the best way to cut/copy an internal object to the clipboard and then paste it back in? For instance, I have an internal DataTable that I want to put on the clipboard, and then later on retrieve that data. I know to use ClipBoard.SetDataObject, but when I tried this and then tried to retrieve the object, I either got some error message about it (clipboard) not responding, or I would get the object back but I could never convert it...
5
3450
by: nagar | last post by:
I have a .NET 2.0 application that needs to backup and restore the contents of the clipboard. When I back it up, I use this code: DataObject oldClipboard = Clipboard.GetDataObject(); IDataObject prevClipboard = new DataObject(); string formats; formats = oldClipboard.GetFormats(); //gets all the possible formats
2
3933
by: =?Utf-8?B?SkRSYXZlbg==?= | last post by:
I have searched all over and can not seem to find an effective way to simply copy the contents of a ASP:gridview column to the clipboard based on a button or similar HTML or ASP.NET control. ASP 2.0 web application with VB.NET code developing in Visual Studio 2005 Pro. Gridview has several columns, and users need the ability to copy one of the columns to the clipboard for pasting into a separate app (that already has the ability to...
2
4872
by: bwesenberg | last post by:
I have created an Access Front End Database that many people in one of the departments use. Each user has their own copy of the Front End on their Computer. The Back End is on a SQL Server. On one of the forms I created a Duplicate Record Button using the Wizard in Access. I have ONE user who has trouble using this button. She uses it to copy records over and over and over. Then she changes just a few pieces of data as needed.
20
7018
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 lData.GetDataPresent(DataFormats.Bitmap) Then Dim lPictureBox As New PictureBox
1
10225
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.