+ Reply to Thread
Results 1 to 2 of 2

How to copy Table2 columns in to Table1 ?

  1. #1
    Registered User
    Join Date
    09-07-2011
    Location
    vizag
    MS-Off Ver
    Excel 2007
    Posts
    46

    Post How to copy Table2 columns in to Table1 ?

    Hi all,

    I have design table1, the table1 have 10 columns ex: slno, EMP_ID, EMP_Name, EMP_loc, EMP_designation, EMP_Status.

    I have imported an excel file(with formula acimport) have EMP_ID, EMP_Designation and some other date...after importing this excel in to access it will be coming in to table 2....If I use the DoCmd.CopyObject then table1 is replacing with table2 so I have lost table1...

    How to replace Table2 columns( Emp_ID and Emp_Designation) into Table1 columns of Emp_ID and EMP_Designation

    Emp_ID is in number format and Emp_Designation is in Text

    format
    .................I have given a command button for Importing excel(it's works fine) and given another command button

    click for Replace columns .......Please Help me..........Thank you

    Regards,
    Sai
    Last edited by bsaimsc; 10-03-2012 at 11:45 PM.

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

    Re: How to copy Table2 columns in to Table1 ?

    If I use the DoCmd.CopyObject then table1 is replacing with table2 so I have lost table1...
    Are you wanting to keep the data in table1 and have table2 data added to it?

    If this is the case and what you are asking, then you will need to do an append query.

    Here is an example of how to do that

    http://www.techonthenet.com/access/t...h/basics11.php
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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