+ Reply to Thread
Results 1 to 3 of 3

Need Access macro to copy data from one table and paste into another.

  1. #1
    Registered User
    Join Date
    01-16-2013
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need Access macro to copy data from one table and paste into another.

    I am attempting to create a macro in Access to copy values from column "net" in table "LeaseCalculated" to column "user" in table "Lease". I need the values to match the ID code in each table. For example, if ID code 123 in table "LeaseCalculated" has a value in the "net" column of 25, I need ID code 123 in table "lease" to say 25 in the "user" column.

    I know this can be done with a query but it needs to be a macro because I have hundreds of databases that I need to be able to apply it on, as well as any new database that I receive (I get them often). Also, the databases are used by another program, which displays information pulled from the "Lease" table and I can sort the information in that program by the columns in that table but the information is stored in the "LeaseCalculated" table, which I cannot sort the displayed information off of.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Need Access macro to copy data from one table and paste into another.

    Suggest you post a sample database with some records (not all) so that this can be designed specifically for your situation.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-16-2013
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need Access macro to copy data from one table and paste into another.

    Thank you for the reply and sorry about the delay. Here is a sample database but I have excluded many of the columns and tables that exist in my real databases, not sure if they make any difference or not. Hopefully the zip attaches correctly. I do appreciate any help.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 12-10-2013, 01:20 AM
  2. Macro to Copy Pivot Table and Paste a Regular Data Table in the Same Position
    By webfeet2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2013, 06:34 AM
  3. Macro to copy a table and paste in another table (based on certain conditions)
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-22-2013, 01:14 PM
  4. Copy/Paste Excel data into Access
    By jay567 in forum Access Tables & Databases
    Replies: 6
    Last Post: 12-07-2011, 01:40 AM
  5. Copy from Excel to Access, delete data from DB before paste.
    By jasocke2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2009, 06:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1