Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 6th, 2003, 06:57 PM
Authorized User
Join Date: Oct 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy and append paste

Could someone help me with a small problem I have. I want to copy and paste a few records using VB. I am using this to copyand paste 1 record but when I have more than 1 i need to copy copy all and paste append.

    DoCmd.DoMenuItem acFormBar, acEditMenu, acSelectAllRecords, , acMenuVer70
    DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
    DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70

any help would be appriciated.

Old October 7th, 2003, 06:51 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG

What you proposed is probably not the most efficient way to copy and paste data. To help you out better, please tell us what you're trying to copy from where to where. Thanks.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Old October 7th, 2003, 01:25 PM
Authorized User
Join Date: Oct 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

I have an invoice data base. One DB is the invoice itself and the other is the details of the invoice. Eg qty, description, unit price, accounting code. When we have to cancel and reissue an invoice I want access to cancel the exciting invoice and create a copy. In the details DB create a copy of the details records from the original invoice so I can relate these records to the new invoice. I hope this explains. When all is said and done. I will have the original invoice (cancelled) with the details, and a new invoice with the same detail records as the original. I have every thing working correctly except the duplication of the detail records. The way I am doing it now only copies one record. With the details form open and filtered to show only the records for this invoice and perform a manual menu operation in access with EDIT, SELECT ALL RECORDS, COPY, PASTE APPEND it works fine but have now idea as to how to do this in VB.
Thanks for your interest in helping me resolve this problem.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Copy Paste sridevi HTML Code Clinic 5 August 11th, 2007 05:09 AM
copy paste !!!!!!! dpkbahuguna Beginning VB 6 1 March 30th, 2007 10:06 AM
copy paste problem paul20091968 Excel VBA 4 November 20th, 2006 10:48 AM
Copy, Paste dpkbahuguna Beginning VB 6 1 October 26th, 2006 10:30 AM
copy and paste url k.manisha ASP.NET 1.0 and 1.1 Professional 1 October 14th, 2006 05:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.