Results 1 to 2 of 2
  1. #1
    kacocal is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    26

    Copy one data from a form in one database and then paste that data to a form in another database.


    Hi all expert,

    I am trying to do what I stated in the title through MS Access 2010 VBA. But I am not successful. Please give me some insights and the VBA code if possible.

    Thanks,

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You don't need vba,
    link the destination table into your db.
    create an append query from your local source table to your target table. It will use the key on the form as criteria.
    you can put a button on the form COPY, which will run the query , docmd.openquery "qaCopyRec"

    insert into tTargTbl ( field1, field2) select field1, field2 from tSrcTbl where [field3]=forms!myForm!txtKey

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Copy and Paste vs Back Up Database
    By mgilbert86 in forum Access
    Replies: 3
    Last Post: 05-28-2015, 04:53 PM
  2. Replies: 3
    Last Post: 03-19-2015, 02:11 PM
  3. Replies: 3
    Last Post: 01-23-2013, 04:34 PM
  4. Copy Paste the entire MS Access Database
    By mkc80 in forum Access
    Replies: 6
    Last Post: 08-24-2012, 01:07 PM
  5. Copy and Paste Data Into an Indexed Table
    By CLT49er in forum Import/Export Data
    Replies: 1
    Last Post: 01-05-2012, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums